mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14:59 +00:00
feature: supports JetBrains Rider (#77)
This commit is contained in:
parent
e1adc30fc1
commit
fd2160e56e
6 changed files with 26 additions and 1 deletions
|
@ -58,6 +58,7 @@ namespace SourceGit.Native
|
|||
finder.VSCode(() => FindExecutable("code"));
|
||||
finder.VSCodeInsiders(() => FindExecutable("code-insiders"));
|
||||
finder.Fleet(FindJetBrainFleet);
|
||||
finder.Rider(() => string.Empty);
|
||||
finder.SublimeText(() => FindExecutable("subl"));
|
||||
return finder.Founded;
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ namespace SourceGit.Native
|
|||
finder.VSCode(() => "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code");
|
||||
finder.VSCodeInsiders(() => "/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/bin/code");
|
||||
finder.Fleet(() => $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/Applications/Fleet.app/Contents/MacOS/Fleet");
|
||||
finder.Rider(() => string.Empty);
|
||||
finder.SublimeText(() => "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl");
|
||||
return finder.Founded;
|
||||
}
|
||||
|
|
|
@ -111,6 +111,7 @@ namespace SourceGit.Native
|
|||
finder.VSCode(FindVSCode);
|
||||
finder.VSCodeInsiders(FindVSCodeInsiders);
|
||||
finder.Fleet(() => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\Programs\\Fleet\\Fleet.exe");
|
||||
finder.Rider(FindRider);
|
||||
finder.SublimeText(FindSublimeText);
|
||||
return finder.Founded;
|
||||
}
|
||||
|
@ -322,6 +323,22 @@ namespace SourceGit.Native
|
|||
return string.Empty;
|
||||
}
|
||||
|
||||
private string FindRider()
|
||||
{
|
||||
var rider = Environment.GetEnvironmentVariable("JetBrains Rider");
|
||||
if (!string.IsNullOrEmpty(rider))
|
||||
{
|
||||
rider = rider.TrimEnd(';', ' ');
|
||||
var path = Path.Combine(rider, "rider64.exe");
|
||||
if (File.Exists(path))
|
||||
{
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
private string FindSublimeText()
|
||||
{
|
||||
var localMachine = Microsoft.Win32.RegistryKey.OpenBaseKey(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue