From 9e5f5cd43cbc81967bde8bbac362330ef6d372f1 Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Wed, 26 Oct 2022 18:32:59 +0200 Subject: [PATCH] Fix #162240 --- .../browser/webExtensionsScannerService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.ts b/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.ts index 2ea60014cdec8..905f49db4de6d 100644 --- a/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.ts +++ b/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.ts @@ -444,7 +444,9 @@ export class WebExtensionsScannerService extends Disposable implements IWebExten async addExtension(location: URI, metadata: Metadata, profileLocation?: URI): Promise { const webExtension = await this.toWebExtension(location, undefined, undefined, undefined, undefined, undefined, undefined, metadata); - return this.addWebExtension(webExtension, profileLocation); + const extension = await this.toScannedExtension(webExtension, false); + await this.addToInstalledExtensions([webExtension], profileLocation); + return extension; } async removeExtension(extension: IScannedExtension, profileLocation?: URI): Promise {