mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-12 09:50:11 -05:00
Use open and show notebook instead of executeCommand in tests (#255106)
This commit is contained in:
@@ -244,7 +244,7 @@ const apiTestSerializer: vscode.NotebookSerializer = {
|
||||
// no kernel -> no default language
|
||||
assert.strictEqual(getFocusedCell(editor)?.document.languageId, 'typescript');
|
||||
|
||||
await vscode.commands.executeCommand('vscode.openWith', notebook.uri, 'default');
|
||||
await vscode.window.showNotebookDocument(await vscode.workspace.openNotebookDocument(notebook.uri));
|
||||
assert.strictEqual(vscode.window.activeTextEditor?.document.uri.path, notebook.uri.path);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user