windowsService.open({cli:environmentService.args,forceNewWindow:true,forceEmpty:true});// new window if "-n" was used without paths
windowsService.open({cli:environmentService.args,forceNewWindow:true,forceEmpty:true,restoreBackups:true});// new window if "-n" was used without paths
this.fileService.backupFile(this.resource,this.getValue());// 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
constdisableWorkspaceStorage=this.environmentService.extensionTestsPath||(!this.workspace&&!this.environmentService.extensionDevelopmentPath);// without workspace or in any extension test, we use inMemory storage unless we develop an extension where we want to preserve state
'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.fileService.backupFile(this.resource,this.getValue());// 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();
}
}
/**
* Saves the current versionId of this editor model if it is dirty.