diff --git a/src/vs/platform/extensionManagement/node/extensionManagementService.ts b/src/vs/platform/extensionManagement/node/extensionManagementService.ts index bddb22b6f307e95621ca36408e3ba3314a847351..687d47ab967017d27646130dbe2f535e5226cf76 100644 --- a/src/vs/platform/extensionManagement/node/extensionManagementService.ts +++ b/src/vs/platform/extensionManagement/node/extensionManagementService.ts @@ -459,7 +459,10 @@ export class ExtensionManagementService implements IExtensionManagementService { private async postUninstallExtension(extension: ILocalExtension, error?: string): TPromise { if (!error) { - await this.galleryService.reportStatistic(extension.manifest.publisher, extension.manifest.name, extension.manifest.version, StatisticType.Uninstall); + // only report if extension has a mapped gallery extension. UUID identifies the gallery extension. + if (extension.identifier.uuid) { + await this.galleryService.reportStatistic(extension.manifest.publisher, extension.manifest.name, extension.manifest.version, StatisticType.Uninstall); + } } this._onDidUninstallExtension.fire({ identifier: extension.identifier, error });