Skip to content

TerminalView

Jan Richter edited this page May 2, 2019 · 6 revisions

term

Lookup

import { BottomBarPanel, TerminalView } from 'vscode-extension-tester';
...
const terminalView = await new BottomBarPanel().openTerminalView();

Terminal Selection

// get names of all available terminals
const names = await terminalView.getChannelNames();
// select a terminal from the drop box by name
await terminalView.selectChannel('Git');

Execute Commands

await terminalView.executeCommand('git status');

Get Text

Select all text and copy it to a variable. No formatting provided.

const text = await terminalView.getText();
Clone this wiki locally