Better names for found Rider installs + context menu for copy/open path

This commit is contained in:
Simon Lübeß
2026-08-15 13:52:33 +02:00
parent 62ad8bee35
commit 188dc4b3b6
4 changed files with 42 additions and 5 deletions
@@ -33,11 +33,19 @@ extension RiderPathLocator
RiderVersion version = .();
String installName = scope .();
String installVersion = scope .();
String productInfoPath = scope .();
Path.Combine(productInfoPath, riderDirectory, "product-info.json");
if (File.Exists(productInfoPath))
version = ParseProductInfoJson(productInfoPath);
version = ParseProductInfoJson(productInfoPath, installName, installVersion);
else
{
installName.Set("Rider");
version.ToString(installVersion..Clear());
}
if (!version.IsInitialized)
{
@@ -49,7 +57,7 @@ extension RiderPathLocator
version = RiderVersion.Parse(directoryName);
}
return new RiderInstallInfo(riderExePath, version, installType);
return new RiderInstallInfo(riderExePath, version, installType, scope $"{installName} {installVersion}");
}
public static override void CollectAllPaths(List<RiderInstallInfo> outInstalls)