mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
@@ -171,7 +171,6 @@ This app supports open repository in external tools listed in the table below.
|
||||
| Visual Studio Code - Insiders | YES | YES | YES |
|
||||
| VSCodium | YES | YES | YES |
|
||||
| Cursor | YES | YES | YES |
|
||||
| Fleet | YES | YES | YES |
|
||||
| Sublime Text | YES | YES | YES |
|
||||
| Zed | YES | YES | YES |
|
||||
| Visual Studio | YES | NO | NO |
|
||||
|
||||
@@ -153,11 +153,6 @@ namespace SourceGit.Models
|
||||
TryAdd("VSCodium", "codium", platformFinder);
|
||||
}
|
||||
|
||||
public void Fleet(Func<string> platformFinder)
|
||||
{
|
||||
TryAdd("Fleet", "fleet", platformFinder);
|
||||
}
|
||||
|
||||
public void SublimeText(Func<string> platformFinder)
|
||||
{
|
||||
TryAdd("Sublime Text", "sublime_text", platformFinder);
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace SourceGit.Native
|
||||
finder.VSCodeInsiders(() => FindExecutable("code-insiders"));
|
||||
finder.VSCodium(() => FindExecutable("codium"));
|
||||
finder.Cursor(() => FindExecutable("cursor"));
|
||||
finder.Fleet(() => FindJetBrainsFleet(localAppDataDir));
|
||||
finder.FindJetBrainsFromToolbox(() => Path.Combine(localAppDataDir, "JetBrains/Toolbox"));
|
||||
finder.SublimeText(() => FindExecutable("subl"));
|
||||
finder.Zed(() =>
|
||||
@@ -135,11 +134,5 @@ namespace SourceGit.Native
|
||||
var local = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".local", "bin", filename);
|
||||
return File.Exists(local) ? local : string.Empty;
|
||||
}
|
||||
|
||||
private string FindJetBrainsFleet(string localAppDataDir)
|
||||
{
|
||||
var path = Path.Combine(localAppDataDir, "JetBrains/Toolbox/apps/fleet/bin/Fleet");
|
||||
return File.Exists(path) ? path : FindExecutable("fleet");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,6 @@ namespace SourceGit.Native
|
||||
finder.VSCodeInsiders(() => "/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/bin/code");
|
||||
finder.VSCodium(() => "/Applications/VSCodium.app/Contents/Resources/app/bin/codium");
|
||||
finder.Cursor(() => "/Applications/Cursor.app/Contents/Resources/app/bin/cursor");
|
||||
finder.Fleet(() => Path.Combine(home, "Applications/Fleet.app/Contents/MacOS/Fleet"));
|
||||
finder.FindJetBrainsFromToolbox(() => Path.Combine(home, "Library/Application Support/JetBrains/Toolbox"));
|
||||
finder.SublimeText(() => "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl");
|
||||
finder.Zed(() => File.Exists("/usr/local/bin/zed") ? "/usr/local/bin/zed" : "/Applications/Zed.app/Contents/MacOS/cli");
|
||||
|
||||
@@ -188,7 +188,6 @@ namespace SourceGit.Native
|
||||
finder.VSCodeInsiders(FindVSCodeInsiders);
|
||||
finder.VSCodium(FindVSCodium);
|
||||
finder.Cursor(() => Path.Combine(localAppDataDir, @"Programs\Cursor\Cursor.exe"));
|
||||
finder.Fleet(() => Path.Combine(localAppDataDir, @"Programs\Fleet\Fleet.exe"));
|
||||
finder.FindJetBrainsFromToolbox(() => Path.Combine(localAppDataDir, @"JetBrains\Toolbox"));
|
||||
finder.SublimeText(FindSublimeText);
|
||||
finder.Zed(FindZed);
|
||||
|
||||
Reference in New Issue
Block a user