提交 22db92f7 编写于 作者: M Matt Bierner

Add telemetry event when TS server is spawned

This is needed to help us better understand which TS versions users have enabled in their workspaces
上级 f4524551
......@@ -289,11 +289,19 @@ export default class TypeScriptServiceClient extends Disposable implements IType
this.onDidChangeTypeScriptVersion(currentVersion);
let mytoken = ++this.token;
const handle = this.typescriptServerSpawner.spawn(currentVersion, this.configuration, this.pluginManager);
this.serverState = new ServerState.Running(handle, apiVersion, undefined, true);
this.lastStart = Date.now();
/* __GDPR__
"tsserver.spawned" : {
"${include}": [
"${TypeScriptCommonProperties}"
]
}
*/
this.logTelemetry('tsserver.spawned');
handle.onError((err: Error) => {
if (this.token !== mytoken) {
// this is coming from an old process
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册