Module: libs/vscode-common/testUtil/openNewEditor
Namespaces
Functions
openNewEditor
▸ openNewEditor(content, __namedParameters?): Promise<TextEditor>
Parameters
| Name | Type |
|---|---|
content | string |
__namedParameters | NewEditorOptions |
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
| Name | Type | Default value | Description |
|---|---|---|---|
cellContents | string[] | undefined | A list of strings each of which will become the contents of a cell in the notebook |
language | string | "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
| Name | Type | Default value |
|---|---|---|
editor | TextEditor | undefined |
content | string | undefined |
language | string | "plaintext" |
Returns
Promise<void>