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()));