提交 a497dc32 编写于 作者: J Johannes Rieken

fix cache key #96402

上级 42637a1d
......@@ -96,7 +96,7 @@ export class NotebookEditorInput extends EditorInput {
private static readonly _instances = new Map<string, NotebookEditorInput>();
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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册