Record when tsserver exits with code or errors

This commit is contained in:
Matt Bierner
2017-05-18 21:35:15 -07:00
parent b8b81b73b4
commit cdaa5f28ef

View File

@@ -529,6 +529,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
if (this.tsServerLogFile) {
this.error(`TSServer log file: ${this.tsServerLogFile}`);
}
this.logTelemetry('tsserver.error');
this.serviceExited(false);
});
childProcess.on('exit', (code: any) => {
@@ -536,6 +537,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
this.info(`TSServer exited`);
} else {
this.error(`TSServer exited with code: ${code}`);
this.logTelemetry('tsserver.exitWithCode', { code: code });
}
if (this.tsServerLogFile) {