backup - confirm save operation before quitting without veto
This commit is contained in:
parent
1d99c020db
commit
b76893899d
1 changed files with 4 additions and 0 deletions
|
@ -168,6 +168,10 @@ export class NativeBackupTracker extends BackupTracker implements IWorkbenchCont
|
|||
if (confirm === ConfirmResult.SAVE) {
|
||||
await this.doSaveAllBeforeShutdown(true /* includeUntitled */, SaveReason.EXPLICIT);
|
||||
|
||||
if (this.workingCopyService.hasDirty) {
|
||||
return true; // veto if any save failed or was canceled
|
||||
}
|
||||
|
||||
return this.noVeto({ discardAllBackups: true }); // no veto (dirty saved)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue