提交 cdaa5f28 编写于 作者: M Matt Bierner

Record when tsserver exits with code or errors

上级 b8b81b73
...@@ -529,6 +529,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient ...@@ -529,6 +529,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
if (this.tsServerLogFile) { if (this.tsServerLogFile) {
this.error(`TSServer log file: ${this.tsServerLogFile}`); this.error(`TSServer log file: ${this.tsServerLogFile}`);
} }
this.logTelemetry('tsserver.error');
this.serviceExited(false); this.serviceExited(false);
}); });
childProcess.on('exit', (code: any) => { childProcess.on('exit', (code: any) => {
...@@ -536,6 +537,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient ...@@ -536,6 +537,7 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
this.info(`TSServer exited`); this.info(`TSServer exited`);
} else { } else {
this.error(`TSServer exited with code: ${code}`); this.error(`TSServer exited with code: ${code}`);
this.logTelemetry('tsserver.exitWithCode', { code: code });
} }
if (this.tsServerLogFile) { if (this.tsServerLogFile) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册