windowsMainService.open({cli:environmentService.args,forceNewWindow:true,forceEmpty:true});// new window if "-n" was used without paths
windowsMainService.open({cli:environmentService.args,forceNewWindow:true,forceEmpty:true,restoreBackups:true});// new window if "-n" was used without paths
'description':nls.localize('watcherExclude',"Configure glob patterns of file paths to exclude from file watching. Changing this setting requires a restart. When you experience Code consuming lots of cpu time on startup, you can exclude large folders to reduce the initial load.")
},
'files.hotExit':{
'type':'boolean',
// TODO: Switch to true once sufficiently stable
'default':false,
'description':nls.localize('hotExit',"Controls whether unsaved files are restored after relaunching. If this is enabled there will be no prompt to save when exiting the editor.")
this.backupFileService.backupResource(resource,content);// Very important here to not return the promise because if the timeout promise is canceled it will bubble up the error otherwise - do not change
});
this.backupPromises.push(promise);
returnpromise;
}
privatecancelBackupPromises():void{
while(this.backupPromises.length){
this.backupPromises.pop().cancel();
}
}
/**
* Performs an immedate backup of all dirty file and untitled models.
this.messageService.show(Severity.Error,nls.localize('files.backup.failSave',"Files could not be backed up (Error: {0}), try saving your files to exit.",firstError.message));