bool FRiderSourceCodeAccessor::OpenSolutionAtPath()

in Source/RiderSourceCodeAccess/Private/RiderSourceCodeAccessor.cpp [219:235]


bool FRiderSourceCodeAccessor::OpenSolutionAtPath(const FString& InSolutionPath)
{
	if (!bHasRiderInstalled) return false;

	FString CorrectSolutionPath = InSolutionPath;
	if (!CorrectSolutionPath.EndsWith(".sln"))
	{
		CorrectSolutionPath += ".sln";
	}
	const FString Params = FString::Printf(TEXT("\"%s\""), *CorrectSolutionPath);
	const FString ErrorMessage = FString::Printf(TEXT("Opening the project file (%s) failed."), *CorrectSolutionPath);

	return HandleOpeningRider([this, &Params, &ErrorMessage]()->bool
	{
		return RSCA::OpenRider(ExecutablePath, Params, ErrorMessage);
	});
}