Skip to main content

Module: libs/vscode-common/testUtil/openNewEditor

Namespaces

Functions

openNewEditor

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

Parameters

NameType
contentstring
__namedParametersNewEditorOptions

Returns

Promise<TextEditor>

Defined in

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


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:74


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:39