Module: libs/vscode-common/testUtil/openNewEditor
Functions
openNewEditor
▸ openNewEditor(content, language?): Promise<TextEditor>
Parameters
| Name | Type | Default value |
|---|---|---|
content | string | undefined |
language | string | "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
| 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:64
reuseEditor
▸ reuseEditor(editor, content, language?): Promise<void>
Parameters
| Name | Type | Default value |
|---|---|---|
editor | TextEditor | undefined |
content | string | undefined |
language | string | "plaintext" |
Returns
Promise<void>
Defined in
libs/vscode-common/testUtil/openNewEditor.ts:29