提交 506ade07 编写于 作者: J Joao Moreno

extension service query telemetry

上级 fd8aa367
...@@ -212,7 +212,7 @@ export class GalleryService implements IGalleryService { ...@@ -212,7 +212,7 @@ export class GalleryService implements IGalleryService {
constructor( constructor(
@IRequestService private requestService: IRequestService, @IRequestService private requestService: IRequestService,
@IWorkspaceContextService contextService: IWorkspaceContextService, @IWorkspaceContextService contextService: IWorkspaceContextService,
@ITelemetryService telemetryService: ITelemetryService @ITelemetryService private telemetryService: ITelemetryService
) { ) {
const config = contextService.getConfiguration().env.extensionsGallery; const config = contextService.getConfiguration().env.extensionsGallery;
this.extensionsGalleryUrl = config && config.serviceUrl; this.extensionsGalleryUrl = config && config.serviceUrl;
...@@ -233,6 +233,9 @@ export class GalleryService implements IGalleryService { ...@@ -233,6 +233,9 @@ export class GalleryService implements IGalleryService {
return TPromise.wrapError(new Error('No extension gallery service configured.')); 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 cache = this.queryCache().then(result => {
const rawLastModified = result.getResponseHeader('last-modified'); const rawLastModified = result.getResponseHeader('last-modified');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册