diff --git a/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts b/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts index 65b33c16c16153255e8dfe8ec3d390961f60d399..d24ae98feaac72a8fbe2eac2e4b204515d207b40 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);