From 506ade07257e2f6530ae8972d5dd56462438ddc9 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Wed, 27 Apr 2016 17:07:32 +0200 Subject: [PATCH] extension service query telemetry --- .../workbench/parts/extensions/common/vsoGalleryService.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/extensions/common/vsoGalleryService.ts b/src/vs/workbench/parts/extensions/common/vsoGalleryService.ts index d1b2b3b4d52..cea9a4e4354 100644 --- a/src/vs/workbench/parts/extensions/common/vsoGalleryService.ts +++ b/src/vs/workbench/parts/extensions/common/vsoGalleryService.ts @@ -212,7 +212,7 @@ export class GalleryService implements IGalleryService { constructor( @IRequestService private requestService: IRequestService, @IWorkspaceContextService contextService: IWorkspaceContextService, - @ITelemetryService telemetryService: ITelemetryService + @ITelemetryService private telemetryService: ITelemetryService ) { const config = contextService.getConfiguration().env.extensionsGallery; this.extensionsGalleryUrl = config && config.serviceUrl; @@ -233,6 +233,9 @@ export class GalleryService implements IGalleryService { return TPromise.wrapError(new Error('No extension gallery service configured.')); } + const type = options.ids ? 'ids' : (options.text ? 'text' : 'all'); + this.telemetryService.publicLog('galleryService:query', { type }); + const cache = this.queryCache().then(result => { const rawLastModified = result.getResponseHeader('last-modified'); -- GitLab