Skip to content

Commit 355fbca

Browse files
committed
re microsoft#105917. update dirty state
1 parent 088f8fe commit 355fbca

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ export class NotebookEditorModel extends EditorModel implements INotebookEditorM
148148
this._onDidChangeDirty.fire();
149149
}));
150150

151+
if (forceReloadFromDisk) {
152+
this._notebook.setDirty(false);
153+
}
154+
151155
if (backupId) {
152156
await this._backupFileService.discardBackup(this._workingCopyResource);
153157
this._notebook.setDirty(true);

0 commit comments

Comments
 (0)