Skip to content

Commit 5230341

Browse files
committed
💄
1 parent c0f7444 commit 5230341

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/vs/workbench/contrib/notebook/common/notebookEditorModel.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class NotebookEditorModel extends EditorModel implements IWorkingCopy, IN
121121

122122
async load(options?: INotebookLoadOptions): Promise<NotebookEditorModel> {
123123
if (options?.forceReadFromDisk) {
124-
return this.loadFromProvider(true, undefined, undefined);
124+
return this._loadFromProvider(true, undefined, undefined);
125125
}
126126

127127
if (this.isResolved()) {
@@ -134,10 +134,10 @@ export class NotebookEditorModel extends EditorModel implements IWorkingCopy, IN
134134
return this; // Make sure meanwhile someone else did not succeed in loading
135135
}
136136

137-
return this.loadFromProvider(false, options?.editorId, backup?.meta?.backupId);
137+
return this._loadFromProvider(false, options?.editorId, backup?.meta?.backupId);
138138
}
139139

140-
private async loadFromProvider(forceReloadFromDisk: boolean, editorId: string | undefined, backupId: string | undefined) {
140+
private async _loadFromProvider(forceReloadFromDisk: boolean, editorId: string | undefined, backupId: string | undefined) {
141141
const notebook = await this._notebookService.resolveNotebook(this.viewType!, this.resource, forceReloadFromDisk, editorId, backupId);
142142
this._notebook = notebook!;
143143
const newStats = await this._resolveStats(this.resource);
@@ -254,10 +254,5 @@ export class NotebookEditorModel extends EditorModel implements IWorkingCopy, IN
254254
} catch (e) {
255255
return undefined;
256256
}
257-
258-
}
259-
260-
dispose() {
261-
super.dispose();
262257
}
263258
}

0 commit comments

Comments
 (0)