src/vs/platform/extensionManagement/common/extensionGalleryService.ts/getTargetPlatformForExtensionVersion
function getTargetPlatformForExtensionVersion(version: IRawGalleryExtensionVersion): TargetPlatform {
	return version.targetPlatform ? toTargetPlatform(version.targetPlatform) : TargetPlatform.UNDEFINED;
}