in Source/RiderSourceCodeAccess/Private/RiderPathLocator/Common/RiderPathLocator.cpp [91:103]
FString FRiderPathLocator::GetHistoryJsonPath(const FString& RiderPath)
{
FString Directory = FPaths::ConvertRelativePathToFull(FPaths::Combine(RiderPath, ".."));
int8_t SafeCheck = 10;
while(DirectoryExistsAndNonEmpty(Directory) && SafeCheck-- > 0)
{
FString HistoryPath = FPaths::Combine(Directory, ".history.json");
if(FPaths::FileExists(HistoryPath)) return HistoryPath;
Directory = FPaths::ConvertRelativePathToFull(FPaths::Combine(Directory, ".."));
}
return {};
}