提交 d0c36279 编写于 作者: S Sandeep Somavarapu

Fix #76105

上级 d30e71f7
......@@ -861,7 +861,7 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
this.queryGallery({ names, ids, pageSize: 1 }, CancellationToken.None);
} finally {
this.installing = this.installing.filter(e => e !== extension);
this._onChange.fire(extension);
this._onChange.fire(this.local.filter(e => areSameExtensions(e.identifier, extension.identifier))[0]);
}
}
......
......@@ -70,10 +70,12 @@ export class RemoteExtensionManagementChannelClient extends ExtensionManagementC
if (!compatible) {
return Promise.reject(new Error(localize('incompatible', "Unable to install extension '{0}' as it is not compatible with VS Code '{1}'.", extension.identifier.id, this.productService.version)));
}
const local = await this.downloadAndInstall(extension, installed);
const workspaceExtensions = await this.getAllWorkspaceDependenciesAndPackedExtensions(local.manifest, CancellationToken.None);
await Promise.all(workspaceExtensions.map(e => this.downloadAndInstall(e, installed)));
return local;
const manifest = await this.galleryService.getManifest(compatible, CancellationToken.None);
if (manifest) {
const workspaceExtensions = await this.getAllWorkspaceDependenciesAndPackedExtensions(manifest, CancellationToken.None);
await Promise.all(workspaceExtensions.map(e => this.downloadAndInstall(e, installed)));
}
return this.downloadAndInstall(extension, installed);
}
private async downloadAndInstall(extension: IGalleryExtension, installed: ILocalExtension[]): Promise<ILocalExtension> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册