Skip to content

Commit 3dca69e

Browse files
committed
close editors after untitled file creation.
1 parent 57d1262 commit 3dca69e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

extensions/vscode-notebook-tests/src/notebook.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,8 @@ suite('regression', () => {
905905
test('#102411 - untitled notebook creation failed', async function () {
906906
await vscode.commands.executeCommand('workbench.action.files.newUntitledFile', { viewType: 'notebookCoreTest' });
907907
assert.notEqual(vscode.notebook.activeNotebookEditor, undefined, 'untitled notebook editor is not undefined');
908+
909+
await vscode.commands.executeCommand('workbench.action.closeAllEditors');
908910
});
909911

910912
test('#102423 - copy/paste shares the same text buffer', async function () {
@@ -926,6 +928,8 @@ suite('regression', () => {
926928

927929
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells.length, 2);
928930
assert.notEqual(vscode.notebook.activeNotebookEditor!.document.cells[0].document.getText(), vscode.notebook.activeNotebookEditor!.document.cells[1].document.getText());
931+
932+
await vscode.commands.executeCommand('workbench.action.closeAllEditors');
929933
});
930934
});
931935

0 commit comments

Comments
 (0)