From 26aae86ac217ef78e339d8983928c2aef1dd7cce Mon Sep 17 00:00:00 2001 From: rebornix Date: Wed, 2 Sep 2020 12:36:46 -0700 Subject: [PATCH] fix #105923. --- .../workbench/contrib/notebook/browser/notebook.contribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts b/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts index 65b33c16c16..d24ae98feaa 100644 --- a/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts +++ b/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts @@ -346,7 +346,7 @@ export class NotebookContribution extends Disposable implements IWorkbenchContri const existingEditors = group.editors.filter(editor => editor.resource && isEqual(editor.resource, notebookUri) && !(editor instanceof NotebookEditorInput)); if (existingEditors.length) { - return undefined; + return { override: this.editorService.openEditor(existingEditors[0]) }; } const userAssociatedEditors = this.getUserAssociatedEditors(notebookUri); -- GitLab