src/vs/platform/extensionManagement/common/extensionManagementCLI.ts/ExtensionManagementCLI/getGalleryExtensions
class ExtensionManagementCLI:	private async getGalleryExtensions(extensions: InstallExtensionInfo[]): Promise<Map<string, IGalleryExtension>> {
		const galleryExtensions = new Map<string, IGalleryExtension>();
		const preRelease = extensions.some(e => e.installOptions.installPreReleaseVersion);
		const result = await this.extensionGalleryService.getExtensions(extensions.map(e => ({ ...e, preRelease })), CancellationToken.None);
		for (const extension of result) {
			galleryExtensions.set(extension.identifier.id.toLowerCase(), extension);
		}
		return galleryExtensions;
	}