Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 authored Oct 26, 2022
1 parent e145a12 commit 002db8f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 002db8f

Please sign in to comment.