mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
parent
586b9561d8
commit
25f1b18fbc
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue