// since a backup did not happen, we have to confirm for the dirty working copies now
returnthis.confirmBeforeShutdown();
try{
// since a backup did not happen, we have to confirm for the dirty working copies now
returnawaitthis.confirmBeforeShutdown();
}catch(error){
this.notificationService.error(localize('backupTrackerConfirmFailed',"Working copies that are dirty could not be saved or reverted (Error: {0}). Try saving your editors first and then exit.",error.message));
this.notificationService.error(localize('backupTrackerBackupIncomplete',"Some working copies that are dirty could not be backed up. Try saving your editors first and then exit."));
}
returntrue;// veto, the backups failed
returntrue;// veto (the backups failed)
}
// no veto and no backup cleanup (since backup was successful)
returnthis.noVeto({dicardAllBackups:false});
returnthis.noVeto({dicardAllBackups:false});// no veto (backup was successful)
assert.ok(!accessor.backupFileService.didDiscardAllWorkspaceBackups);// When hot exit is set, backups should never be cleaned since the confirm result is cancel
assert.ok(!accessor.backupFileService.didDiscardAllBackups);// When hot exit is set, backups should never be cleaned since the confirm result is cancel