mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
Clean up pass
This commit is contained in:
@@ -163,10 +163,8 @@ export class UntitledEditorModel extends StringEditorModel implements IEncodingS
|
||||
|
||||
if (this.fileService.isHotExitEnabled()) {
|
||||
if (this.dirty) {
|
||||
console.log('backup');
|
||||
this.doBackup();
|
||||
} else {
|
||||
console.log('discard');
|
||||
this.fileService.discardBackup(this.resource);
|
||||
}
|
||||
}
|
||||
@@ -189,7 +187,6 @@ export class UntitledEditorModel extends StringEditorModel implements IEncodingS
|
||||
this._onDidChangeEncoding.dispose();
|
||||
|
||||
this.cancelBackupPromises();
|
||||
console.log('discard');
|
||||
this.fileService.discardBackup(this.resource);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user