constdisableWorkspaceStorage=this.configuration.env.extensionTestsPath||(!this.workspace&&!this.configuration.env.extensionDevelopmentPath);// without workspace or in any extension test, we use inMemory storage unless we develop an extension where we want to preserve state
constdisableWorkspaceStorage=this.configuration.env.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
constmsg=this.isExtensionDevelopmentDebugging?nls.localize('extensionHostProcess.startupFailDebug',"Extension host did not start in 10 seconds, it might be stopped on the first line and needs a debugger to continue."):nls.localize('extensionHostProcess.startupFail',"Extension host did not start in 10 seconds, that might be a problem.");
...
...
@@ -139,7 +140,7 @@ class ExtensionHostProcessManager {
returnfindFreePort(config.env.debugExtensionHostPort,10/* try 10 ports */,5000/* try up to 5 seconds */,(port)=>{
if(typeofextensionHostPort==='number'){
returnfindFreePort(extensionHostPort,10/* try 10 ports */,5000/* try up to 5 seconds */,(port)=>{
if(!port){
console.warn('%c[Extension Host] %cCould not find a free port for debugging','color: blue','color: black');
returnclb(void0);
}
if(port!==config.env.debugExtensionHostPort){
console.warn('%c[Extension Host] %cProvided debugging port '+config.env.debugExtensionHostPort+' is not free, using '+port+' instead.','color: blue','color: black');
if(port!==extensionHostPort){
console.warn('%c[Extension Host] %cProvided debugging port '+extensionHostPort+' is not free, using '+port+' instead.','color: blue','color: black');
}
if(this.isExtensionDevelopmentDebugging){
...
...
@@ -329,7 +330,7 @@ class ExtensionHostProcessManager {
}
}
private_onWillShutdown(event:ShutdownEvent):void{
private_onWillShutdown(event:ShutdownEvent):void{
// If the extension development host was started without debugger attached we need
// to communicate this back to the main side to terminate the debug session
...
...
@@ -337,7 +338,7 @@ class ExtensionHostProcessManager {