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

Log Traces at correct level when TSServer exists as expected. Fixes #25381

上级 04f5fbb1
......@@ -597,9 +597,14 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
this.serviceExited(false);
});
childProcess.on('exit', (code: any) => {
this.error(`TSServer exited with code: ${code === null || typeof code === 'undefined' ? 'unknown' : code}`);
if (code === null || typeof code === 'undefined') {
this.info(`TSServer exited`);
} else {
this.error(`TSServer exited with code: ${code}`);
}
if (this.tsServerLogFile) {
this.error(`TSServer log file: ${this.tsServerLogFile}`);
this.info(`TSServer log file: ${this.tsServerLogFile}`);
}
this.serviceExited(true);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册