Skip to content

Commit 002db8f

Browse files
authored
1 parent e145a12 commit 002db8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,9 @@ export class WebExtensionsScannerService extends Disposable implements IWebExten
444444

445445
async addExtension(location: URI, metadata: Metadata, profileLocation?: URI): Promise<IScannedExtension> {
446446
const webExtension = await this.toWebExtension(location, undefined, undefined, undefined, undefined, undefined, undefined, metadata);
447-
return this.addWebExtension(webExtension, profileLocation);
447+
const extension = await this.toScannedExtension(webExtension, false);
448+
await this.addToInstalledExtensions([webExtension], profileLocation);
449+
return extension;
448450
}
449451

450452
async removeExtension(extension: IScannedExtension, profileLocation?: URI): Promise<void> {

0 commit comments

Comments
 (0)