Skip to content

ContentAssist

codeAssist

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, returns undefined if not found
// takes an optional timeout in ms (default 30000)
const item = await contentAssist.getItem("Get");
// get all visible items
const items = await contentAssist.getItems();
await (await contentAssist.getItem('Get'))?.click();