-
Notifications
You must be signed in to change notification settings - Fork 72
ContentAssist
github-actions[bot] edited this page May 16, 2024
·
5 revisions
import { TextEditor, ContentAssist } from 'vscode-extension-tester';
...
const contentAssist = await new TextEditor().toggleContentAssist(true);
// find if an item with given label is present
const hasItem = await contentAssist.hasItem("Get");
// get an item by label
const item = await contentAssist.getItem("Get");
// get all visible items
const items = await contentAssist.getItems();
await contentAssist.getItem("Get").click();