add telemetry (#199176)

This commit is contained in:
Sandeep Somavarapu
2023-11-27 17:14:08 +01:00
committed by GitHub
parent 5acd8bb42f
commit e641fcc0ba
@@ -800,6 +800,14 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
urlService.registerHandler(this);
this.whenInitialized = this.initialize();
lifecycleService.when(LifecyclePhase.Eventually).then(() => {
telemetryService.publicLog2<{ mode: string }, {
owner: 'sandy081';
mode: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'Auto Update Mode' };
comment: 'This is used to know if extensions are getting auto updated or not';
}>('extensions:autoupdate', { mode: `${this.getAutoUpdateValue()}` });
});
}
private async initialize(): Promise<void> {