pinned:!this.accessor.partOptions.enablePreview||editor.isDirty()||(options?.pinned??typeofoptions?.index==='number'),// unless specified, prefer to pin when opening with index
returnthis.noVeto({discardAllBackups:false});// no veto (backup was successful)
}
}catch(error){
}catch(error){
backupError=error;
backupError=error;
}
}
}
}
if(didBackup){
returnthis.noVeto({discardAllBackups:false});// no veto (backup was successful)
}
// we ran a backup but received an error that we show to the user
// we ran a backup but received an error that we show to the user
if(backupError){
if(backupError){
this.showErrorDialog(localize('backupTrackerBackupFailed',"One or many editors that are dirty could not be saved to the backup location."),backupError);
this.showErrorDialog(localize('backupTrackerBackupFailed',"One or many editors that are dirty could not be saved to the backup location."),backupError);