Skip to main content

Module: libs/vscode-common/testUtil/openNewEditor

Functions

openNewEditor

openNewEditor(content, language?): Promise<TextEditor>

Parameters

NameTypeDefault value
contentstringundefined
languagestring"plaintext"

Returns

Promise<TextEditor>

Defined in

libs/vscode-common/testUtil/openNewEditor.ts:4


openNewNotebookEditor

openNewNotebookEditor(cellContents, language?): Promise<NotebookDocument>

Open a new notebook editor with the given cells

Parameters

NameTypeDefault valueDescription
cellContentsstring[]undefinedA list of strings each of which will become the contents of a cell in the notebook
languagestring"plaintext"The language id to use for all the cells in the notebook

Returns

Promise<NotebookDocument>

notebook

Defined in

libs/vscode-common/testUtil/openNewEditor.ts:64


reuseEditor

reuseEditor(editor, content, language?): Promise<void>

Parameters

NameTypeDefault value
editorTextEditorundefined
contentstringundefined
languagestring"plaintext"

Returns

Promise<void>

Defined in

libs/vscode-common/testUtil/openNewEditor.ts:29