提交 58b38d5e 编写于 作者: S Sandeep Somavarapu

Fix Microsoft/vscode-remote/issues/1455

上级 3a1f5537
......@@ -812,7 +812,8 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
}
return this.installWithProgress(async () => {
await this.extensionService.installFromGallery(gallery);
const extensionService = extension.server ? extension.server.extensionManagementService : this.extensionService;
await extensionService.installFromGallery(gallery);
this.checkAndEnableDisabledDependencies(gallery.identifier);
return this.local.filter(local => areSameExtensions(local.identifier, gallery.identifier))[0];
}, gallery.displayName);
......@@ -854,7 +855,8 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
return Promise.reject(new Error(nls.localize('incompatible', "Unable to install extension '{0}' with version '{1}' as it is not compatible with VS Code.", extension.gallery!.identifier.id, version)));
}
return this.installWithProgress(async () => {
await this.extensionService.installFromGallery(gallery);
const extensionService = extension.server ? extension.server.extensionManagementService : this.extensionService;
await extensionService.installFromGallery(gallery);
if (extension.latestVersion !== version) {
this.ignoreAutoUpdate(new ExtensionIdentifierWithVersion(gallery.identifier, version));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册