Skip to content

Commit c195156

Browse files
authored
Use open and show notebook instead of executeCommand in tests (microsoft#255106)
1 parent d5ae7bb commit c195156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ const apiTestSerializer: vscode.NotebookSerializer = {
244244
// no kernel -> no default language
245245
assert.strictEqual(getFocusedCell(editor)?.document.languageId, 'typescript');
246246

247-
await vscode.commands.executeCommand('vscode.openWith', notebook.uri, 'default');
247+
await vscode.window.showNotebookDocument(await vscode.workspace.openNotebookDocument(notebook.uri));
248248
assert.strictEqual(vscode.window.activeTextEditor?.document.uri.path, notebook.uri.path);
249249
});
250250

0 commit comments

Comments
 (0)