code_style: using avalonia's editorconfig and run dotnet format.

This commit is contained in:
leo 2024-03-31 16:54:29 +08:00
parent 3c38f681bd
commit d89a00e559
233 changed files with 1806 additions and 1254 deletions

View file

@ -25,21 +25,24 @@ namespace SourceGit.Native
public string FindGitExecutable()
{
if (File.Exists("/usr/bin/git")) return "/usr/bin/git";
if (File.Exists("/usr/bin/git"))
return "/usr/bin/git";
return string.Empty;
}
public string FindVSCode()
{
var toolPath = "/usr/share/code/code";
if (File.Exists(toolPath)) return toolPath;
if (File.Exists(toolPath))
return toolPath;
return string.Empty;
}
public string FindFleet()
{
var toolPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/.local/share/JetBrains/Toolbox/apps/fleet/bin/Fleet";
if (File.Exists(toolPath)) return toolPath;
if (File.Exists(toolPath))
return toolPath;
return string.Empty;
}
@ -117,4 +120,4 @@ namespace SourceGit.Native
proc.Close();
}
}
}
}