-
Notifications
You must be signed in to change notification settings - Fork 72
DebugConsoleView
github-actions[bot] edited this page May 16, 2024
·
5 revisions
Page object needs extending, currently minimal support.
import { BottomBarPanel, DebugConsoleView } from 'vscode-extension-tester';
...
const debugView = await new BottomBarPanel().openDebugConsoleView();
// get all text as string
const text = await debugView.getText();
// clear the text
await debugView.clearText();
// type an expression
await debugView.setExpression("expression");
// evaluate an existing expression
await debugView.evaluateExpression();
// type and evaluate an expression
await debugView.evaluateExpression("expression");
// get a handle for content assist
const assist = await debugView.getContentAssist();