@@ -424,19 +424,22 @@ export default class TypeScriptServiceClient extends Disposable implements IType
424
424
this . serverState = new ServerState . Running ( handle , apiVersion , undefined , true ) ;
425
425
this . lastStart = Date . now ( ) ;
426
426
427
+ const hasGlobalPlugins = this . pluginManager . plugins . length > 0 ;
427
428
/* __GDPR__
428
429
"tsserver.spawned" : {
429
430
"owner": "mjbvz",
430
431
"${include}": [
431
432
"${TypeScriptCommonProperties}"
432
433
],
433
434
"localTypeScriptVersion": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
434
- "typeScriptVersionSource": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
435
+ "typeScriptVersionSource": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
436
+ "hasGlobalPlugins": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
435
437
}
436
438
*/
437
439
this . logTelemetry ( 'tsserver.spawned' , {
438
440
localTypeScriptVersion : this . versionProvider . localVersion ? this . versionProvider . localVersion . displayName : '' ,
439
441
typeScriptVersionSource : version . source ,
442
+ hasGlobalPlugins,
440
443
} ) ;
441
444
442
445
handle . onError ( ( err : Error ) => {
@@ -460,10 +463,11 @@ export default class TypeScriptServiceClient extends Disposable implements IType
460
463
"owner": "mjbvz",
461
464
"${include}": [
462
465
"${TypeScriptCommonProperties}"
463
- ]
466
+ ],
467
+ "hasGlobalPlugins": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
464
468
}
465
469
*/
466
- this . logTelemetry ( 'tsserver.error' ) ;
470
+ this . logTelemetry ( 'tsserver.error' , { hasGlobalPlugins } ) ;
467
471
this . serviceExited ( false , apiVersion ) ;
468
472
} ) ;
469
473
@@ -476,14 +480,19 @@ export default class TypeScriptServiceClient extends Disposable implements IType
476
480
/* __GDPR__
477
481
"tsserver.exitWithCode" : {
478
482
"owner": "mjbvz",
479
- "code" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
480
- "signal" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
481
483
"${include}": [
482
484
"${TypeScriptCommonProperties}"
483
- ]
485
+ ],
486
+ "code" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
487
+ "signal" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
488
+ "hasGlobalPlugins": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
484
489
}
485
490
*/
486
- this . logTelemetry ( 'tsserver.exitWithCode' , { code : code ?? undefined , signal : signal ?? undefined } ) ;
491
+ this . logTelemetry ( 'tsserver.exitWithCode' , {
492
+ code : code ?? undefined ,
493
+ signal : signal ?? undefined ,
494
+ hasGlobalPlugins,
495
+ } ) ;
487
496
488
497
if ( this . token !== mytoken ) {
489
498
// this is coming from an old process
0 commit comments