Skip to content

Commit 01e402c

Browse files
authored
Fix problem with undoing entire stack (#10018)
1 parent 97ad678 commit 01e402c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/datascience/interactive-ipynb/nativeEditorStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ interface INativeEditorStorageState {
3434
@injectable()
3535
export class NativeEditorStorage implements INotebookModel, INotebookStorage {
3636
public get isDirty(): boolean {
37-
return this._state.changeCount !== this._state.saveChangeCount && this._state.changeCount !== 0;
37+
return this._state.changeCount !== this._state.saveChangeCount;
3838
}
3939
public get changed(): Event<NotebookModelChange> {
4040
return this._changedEmitter.event;

0 commit comments

Comments
 (0)