mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
Discard backups when the file is no longer dirty
Make content update trigger after dirty status is evaluated
This commit is contained in:
@@ -145,8 +145,6 @@ export class UntitledEditorModel extends StringEditorModel implements IEncodingS
|
||||
}
|
||||
|
||||
private onModelContentChanged(): void {
|
||||
this._onDidChangeContent.fire();
|
||||
|
||||
// turn dirty if we were not
|
||||
if (!this.dirty) {
|
||||
this.dirty = true;
|
||||
@@ -159,6 +157,8 @@ export class UntitledEditorModel extends StringEditorModel implements IEncodingS
|
||||
this.dirty = false;
|
||||
this._onDidChangeDirty.fire();
|
||||
}
|
||||
|
||||
this._onDidChangeContent.fire();
|
||||
}
|
||||
|
||||
public dispose(): void {
|
||||
|
||||
Reference in New Issue
Block a user