From cdaa5f28efd6d6fa012a34a92a6cf3fe57928b38 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Thu, 18 May 2017 21:35:15 -0700 Subject: [PATCH] Record when tsserver exits with code or errors --- extensions/typescript/src/typescriptServiceClient.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/typescript/src/typescriptServiceClient.ts b/extensions/typescript/src/typescriptServiceClient.ts index 525fd8e0eec..18b0f81e5ee 100644 --- a/extensions/typescript/src/typescriptServiceClient.ts +++ b/extensions/typescript/src/typescriptServiceClient.ts @@ -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) { -- GitLab