mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-25 15:35:43 +01:00
Revert "use associatedResource instead of untitledResource, https://github.com/microsoft/vscode/issues/125028"
This reverts commit 17da5e3721.
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user