Use open and show notebook instead of executeCommand in tests (#255106)

This commit is contained in:
Don Jayamanne
2025-07-10 21:05:02 +10:00
committed by GitHub
parent d5ae7bbf1e
commit c195156400

View File

@@ -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);
});