Skip to content

DebugConsoleView

github-actions[bot] edited this page May 16, 2024 · 5 revisions

Page object needs extending, currently minimal support.

Lookup

import { BottomBarPanel, DebugConsoleView } from 'vscode-extension-tester';
...
const debugView = await new BottomBarPanel().openDebugConsoleView();

Text Handling

// get all text as string
const text = await debugView.getText();
// clear the text
await debugView.clearText();

Expressions

// 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();
Clone this wiki locally