提交 10ba78f6 编写于 作者: S Sandeep Somavarapu

Do not report error statistics for extensions not mapped to gallery

上级 38c54228
...@@ -459,8 +459,11 @@ export class ExtensionManagementService implements IExtensionManagementService { ...@@ -459,8 +459,11 @@ export class ExtensionManagementService implements IExtensionManagementService {
private async postUninstallExtension(extension: ILocalExtension, error?: string): TPromise<void> { private async postUninstallExtension(extension: ILocalExtension, error?: string): TPromise<void> {
if (!error) { if (!error) {
// 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); await this.galleryService.reportStatistic(extension.manifest.publisher, extension.manifest.name, extension.manifest.version, StatisticType.Uninstall);
} }
}
this._onDidUninstallExtension.fire({ identifier: extension.identifier, error }); this._onDidUninstallExtension.fire({ identifier: extension.identifier, error });
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册