@@ -459,7 +459,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
this.lastError=err;
this.error('Starting TSServer failed with error.',err);
window.showErrorMessage(localize('serverCouldNotBeStarted','TypeScript language server couldn\'t be started. Error message is: {0}',err.message||err));
this.logTelemetry('error',{message:err.message});
this.logTelemetry('error',{message:err.message});
return;
}
this.lastStart=Date.now();
...
...
@@ -494,7 +494,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
@@ -521,7 +521,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
letdesc=null;
try{
desc=JSON.parse(contents);
}catch(err){
}catch(err){
returnundefined;
}
if(!desc.version){
...
...
@@ -542,7 +542,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
letstartService=true;
if(this.numberRestarts>5){
if(diff<60*1000/* 1 Minutes */){
window.showWarningMessage(localize('serverDied','The TypeScript language service died unexpectedly 5 times in the last 5 Minutes. Please consider to open a bug report.'));
window.showWarningMessage(localize('serverDied','The TypeScript language service died unexpectedly 5 times in the last 5 Minutes. Please consider to open a bug report.'));
}elseif(diff<2*1000/* 2 seconds */){
startService=false;
window.showErrorMessage(localize('serverDiedAfterStart','The TypeScript language service died 5 times right after it got started. The service will not be restarted. Please open a bug report.'));