This commit is contained in:
Sandeep Somavarapu 2022-10-26 18:48:44 +02:00 committed by GitHub
parent e145a12888
commit 002db8f362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -444,7 +444,9 @@ export class WebExtensionsScannerService extends Disposable implements IWebExten
async addExtension(location: URI, metadata: Metadata, profileLocation?: URI): Promise<IScannedExtension> {
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<void> {