Skip to content

Commit 4a0169c

Browse files
authored
1 parent 82348c3 commit 4a0169c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/vs/workbench/services/extensionManagement/common/extensionManagementChannelClient.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { ILocalExtension, IGalleryExtension, InstallOptions, InstallVSIXOptions, UninstallOptions, Metadata, DidUninstallExtensionEvent, InstallExtensionEvent, InstallExtensionResult, UninstallExtensionEvent } from 'vs/platform/extensionManagement/common/extensionManagement';
6+
import { ILocalExtension, IGalleryExtension, InstallOptions, InstallVSIXOptions, UninstallOptions, Metadata, DidUninstallExtensionEvent, InstallExtensionEvent, InstallExtensionResult, UninstallExtensionEvent, InstallExtensionInfo } from 'vs/platform/extensionManagement/common/extensionManagement';
77
import { URI } from 'vs/base/common/uri';
88
import { ExtensionIdentifier, ExtensionType, IExtensionIdentifier } from 'vs/platform/extensions/common/extensions';
99
import { ExtensionManagementChannelClient as BaseExtensionManagementChannelClient, ExtensionEventResult } from 'vs/platform/extensionManagement/common/extensionManagementIpc';
@@ -76,6 +76,14 @@ export abstract class ProfileAwareExtensionManagementChannelClient extends BaseE
7676
return super.installFromGallery(extension, installOptions);
7777
}
7878

79+
override async installGalleryExtensions(extensions: InstallExtensionInfo[]): Promise<InstallExtensionResult[]> {
80+
const infos: InstallExtensionInfo[] = [];
81+
for (const extension of extensions) {
82+
infos.push({ ...extension, options: { ...extension.options, profileLocation: extension.options?.profileLocation ? (await this.getProfileLocation(extension.options?.profileLocation)) : undefined } });
83+
}
84+
return super.installGalleryExtensions(infos);
85+
}
86+
7987
override async uninstall(extension: ILocalExtension, options?: UninstallOptions): Promise<void> {
8088
options = { ...options, profileLocation: await this.getProfileLocation(options?.profileLocation) };
8189
return super.uninstall(extension, options);

0 commit comments

Comments
 (0)