This commit is contained in:
Sandeep Somavarapu 2024-03-06 22:02:10 +01:00 committed by GitHub
parent 586b9561d8
commit 25f1b18fbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -375,9 +375,13 @@ export class WebExtensionsScannerService extends Disposable implements IWebExten
const result = new Map<string, IWebExtension>();
const extensionInfos: IExtensionInfo[] = [];
await Promise.all(extensionGalleryResources.map(async extensionGalleryResource => {
const webExtension = await this.toWebExtensionFromExtensionGalleryResource(extensionGalleryResource);
result.set(webExtension.identifier.id.toLowerCase(), webExtension);
extensionInfos.push({ id: webExtension.identifier.id, version: webExtension.version });
try {
const webExtension = await this.toWebExtensionFromExtensionGalleryResource(extensionGalleryResource);
result.set(webExtension.identifier.id.toLowerCase(), webExtension);
extensionInfos.push({ id: webExtension.identifier.id, version: webExtension.version });
} catch (error) {
this.logService.info(`Ignoring additional builtin extension from gallery resource ${extensionGalleryResource.toString()} because there is an error while converting it into web extension`, getErrorMessage(error));
}
}));
const galleryExtensions = await this.galleryService.getExtensions(extensionInfos, CancellationToken.None);
for (const galleryExtension of galleryExtensions) {