From c195156400a06e82f7cb0519396d72f8605fd61e Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Thu, 10 Jul 2025 21:05:02 +1000 Subject: [PATCH] Use open and show notebook instead of executeCommand in tests (#255106) --- .../src/singlefolder-tests/notebook.api.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/vscode-api-tests/src/singlefolder-tests/notebook.api.test.ts b/extensions/vscode-api-tests/src/singlefolder-tests/notebook.api.test.ts index e4489090017..0903b12a14a 100644 --- a/extensions/vscode-api-tests/src/singlefolder-tests/notebook.api.test.ts +++ b/extensions/vscode-api-tests/src/singlefolder-tests/notebook.api.test.ts @@ -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); });