in Source/RiderSourceCodeAccess/Private/RiderSourceCodeAccessor.cpp [401:416]
TOptional<FString> FRiderSourceCodeAccessor::GetSolutionPath() const
{
FScopeLock Lock(&CachedSolutionPathCriticalSection);
CachePathToSolution();
if(!FPaths::FileExists(CachedSolutionPath))
{
if(!TryGenerateSolutionFile()) return {};
CachePathToSolution();
if(!FPaths::FileExists(CachedSolutionPath)) return {};
}
// This must be an absolute path as VS always uses absolute paths
return CachedSolutionPath;
}