From a497dc32bd64d7d3a88d5f19c93876ef4b88def8 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Wed, 29 Apr 2020 17:14:32 +0200 Subject: [PATCH] fix cache key #96402 --- .../workbench/contrib/notebook/browser/notebookEditorInput.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/notebook/browser/notebookEditorInput.ts b/src/vs/workbench/contrib/notebook/browser/notebookEditorInput.ts index abc3dfd2f77..7f53d24bdda 100644 --- a/src/vs/workbench/contrib/notebook/browser/notebookEditorInput.ts +++ b/src/vs/workbench/contrib/notebook/browser/notebookEditorInput.ts @@ -96,7 +96,7 @@ export class NotebookEditorInput extends EditorInput { private static readonly _instances = new Map(); static getOrCreate(instantiationService: IInstantiationService, resource: URI, name: string, viewType: string | undefined) { - const key = name + viewType; + const key = resource.toString() + viewType; let input = NotebookEditorInput._instances.get(key); if (!input) { input = instantiationService.createInstance(class extends NotebookEditorInput { -- GitLab