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
This commit is contained in:
parent
f4524551e9
commit
22db92f71b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue