From 4a941f2e582dbb6991f2c350eb19dfd44ec329b6 Mon Sep 17 00:00:00 2001 From: rebornix Date: Wed, 29 Apr 2020 11:16:31 -0700 Subject: [PATCH] :lipstick: --- .../contrib/notebook/browser/notebook.contribution.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts b/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts index f09d936385c..0a413ca9a13 100644 --- a/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts +++ b/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts @@ -164,10 +164,10 @@ export class NotebookContribution implements IWorkbenchContribution { } if (id === undefined) { - const existingEditors = group.editors.filter(editor => editor.resource && isEqual(editor.resource, resource)); + const existingEditors = group.editors.filter(editor => editor.resource && isEqual(editor.resource, resource) && !(editor instanceof NotebookEditorInput)); if (existingEditors.length) { - return; + return undefined; } const userAssociatedEditors = this.getUserAssociatedEditors(resource);