From ef0fb8afb89e48449656a69e067d2fb0dae61897 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Wed, 2 Jun 2021 15:55:56 +0200 Subject: [PATCH] Revert "use associatedResource instead of untitledResource, https://github.com/microsoft/vscode/issues/125028" This reverts commit 17da5e37217f46f4f891468811a1ec510a016617. --- src/vs/workbench/contrib/notebook/common/notebookEditorModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/notebook/common/notebookEditorModel.ts b/src/vs/workbench/contrib/notebook/common/notebookEditorModel.ts index 696e471a25a..9dcd7ea0826 100644 --- a/src/vs/workbench/contrib/notebook/common/notebookEditorModel.ts +++ b/src/vs/workbench/contrib/notebook/common/notebookEditorModel.ts @@ -498,7 +498,7 @@ export class SimpleNotebookEditorModel extends EditorModel implements INotebookE if (!this._workingCopy) { if (this.resource.scheme === Schemas.untitled) { - this._workingCopy = await this._workingCopyManager.resolve({ associatedResource: this.resource }); + this._workingCopy = await this._workingCopyManager.resolve({ untitledResource: this.resource }); } else { this._workingCopy = await this._workingCopyManager.resolve(this.resource, { forceReadFromFile: options?.forceReadFromFile }); this._workingCopyListeners.add(this._workingCopy.onDidSave(() => this._onDidSave.fire()));