src/vs/workbench/services/extensions/common/extensions.ts/extensionDescriptionArrayToMap
function extensionDescriptionArrayToMap(extensions: IExtensionDescription[]): Map<string, IExtensionDescription> {
	const result = new Map<string, IExtensionDescription>();
	for (const extension of extensions) {
		result.set(ExtensionIdentifier.toKey(extension.identifier), extension);
	}
	return result;
}