static VsCodeDiffProgram() { var paths = new List <string>(); if (DiffReporter.IsWindows) { paths.AddRange(WindowsProgramFilePaths .Select(p => $@"{p}\Microsoft VS Code\Code.exe") .ToArray()); } else { paths.Add("/usr/local/bin/code"); } DefaultSearchPaths = paths; }
static VsCodeDiffProgram() { var paths = new List <string>(); if (DiffReporter.IsWindows) { paths.AddRange(WindowsProgramFilePaths .Select(p => $@"{p}\Microsoft VS Code\Code.exe") .ToArray()); } else { paths.Add("/usr/local/bin/code"); paths.Add("/usr/bin/code"); paths.Add("/snap/bin/code"); paths.Add("/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code"); } DefaultSearchPaths = paths; }
static P4MergeDiffProgram() { DefaultSearchPaths = WindowsProgramFilePaths .Select(p => $@"{p}\Perforce\p4merge.exe") .ToArray(); }
static KDiff3DiffProgram() { DefaultSearchPaths = WindowsProgramFilePaths .Select(p => $@"{p}\KDiff3\KDiff3.exe") .ToArray(); }