in Source/RiderSourceCodeAccess/Private/RiderPathLocator/Win/RiderPathLocatorWin.cpp [33:46]
static FString GetToolboxPath(const Windows::HKEY RootKey, const FString& RegistryKey)
{
FString ToolboxBinPath;
if (!FWindowsPlatformMisc::QueryRegKey(RootKey, *RegistryKey, TEXT(""), ToolboxBinPath)) return {};
FPaths::NormalizeDirectoryName(ToolboxBinPath);
const FString PatternString(TEXT("(.*)(?:\\\\|/)bin"));
const FRegexPattern Pattern(PatternString);
FRegexMatcher ToolboxPathMatcher(Pattern, ToolboxBinPath);
if (!ToolboxPathMatcher.FindNext()) return {};
return ToolboxPathMatcher.GetCaptureGroup(1);
}