Skip to content

Commit f16ff38

Browse files
committed
check viewtype, is string, not interactive
1 parent 39da966 commit f16ff38

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,10 @@ class SimpleNotebookWorkingCopyEditorHandler extends Disposable implements IWork
613613
await this._extensionService.whenInstalledExtensionsRegistered();
614614

615615
this._register(this._workingCopyEditorService.registerHandler({
616-
handles: workingCopy => typeof this._getViewType(workingCopy) && workingCopy.resource.scheme !== Schemas.vscodeInteractive,
616+
handles: workingCopy => {
617+
const viewType = this._getViewType(workingCopy);
618+
return typeof viewType === 'string' && viewType !== 'interactive';
619+
},
617620
isOpen: (workingCopy, editor) => editor instanceof NotebookEditorInput && editor.viewType === this._getViewType(workingCopy) && isEqual(workingCopy.resource, editor.resource),
618621
createEditor: workingCopy => NotebookEditorInput.create(this._instantiationService, workingCopy.resource, this._getViewType(workingCopy)!)
619622
}));

0 commit comments

Comments
 (0)