Skip to content

ContentAssist

Jan Richter edited this page Aug 6, 2019 · 5 revisions

codeAssist

Open/Lookup

import { TextEditor, ContentAssist } from 'vscode-extension-tester';
...
const contentAssist = await new TextEditor().toggleContentAssist(true);

Get Items

// find if an item with given label is present
const hasItem = await contentAssist.hasItem('Get');
// get an item by label
const item = contentAssist.getItem('Get');
// get all visible items
const items = await contentAssist.getItems();

Select an Item

await contentAssist.getItem('Get').click();
Clone this wiki locally