提交 084dec8b 编写于 作者: S Sandeep Somavarapu

set the gallery extension only when installation is succeeded

上级 d5d6e571
......@@ -888,7 +888,6 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService,
let extension: Extension | undefined = installingExtension ? installingExtension : zipPath ? new Extension(this.galleryService, this.stateProvider, local, undefined, this.telemetryService, this.logService, this.fileService) : undefined;
if (extension) {
extension.gallery = gallery;
if (local) {
const installed = this.installed.filter(e => areSameExtensions(e.identifier, extension!.identifier))[0];
if (installed) {
......@@ -897,6 +896,7 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService,
this.installed.push(extension);
}
extension.local = local;
extension.gallery = gallery;
}
}
this._onChange.fire(error ? undefined : extension);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册