Skip to content

Commit 3f4cc87

Browse files
authored
1 parent bc7496e commit 3f4cc87

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,16 @@ export class WebExtensionManagementService extends AbstractExtensionManagementSe
103103
}
104104

105105
protected doCreateInstallExtensionTask(manifest: IExtensionManifest, extension: URI | IGalleryExtension, options: ServerInstallOptions): IInstallExtensionTask {
106+
if (!options.profileLocation) {
107+
options = { ...options, profileLocation: this.userDataProfileService.currentProfile.extensionsResource };
108+
}
106109
return new InstallExtensionTask(manifest, extension, options, this.webExtensionsScannerService);
107110
}
108111

109112
protected doCreateUninstallExtensionTask(extension: ILocalExtension, options: ServerUninstallOptions): IUninstallExtensionTask {
113+
if (!options.profileLocation) {
114+
options = { ...options, profileLocation: this.userDataProfileService.currentProfile.extensionsResource };
115+
}
110116
return new UninstallExtensionTask(extension, options, this.webExtensionsScannerService);
111117
}
112118

0 commit comments

Comments
 (0)