示例#1
0
        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;
        }
示例#2
0
        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;
        }
示例#3
0
 static P4MergeDiffProgram()
 {
     DefaultSearchPaths = WindowsProgramFilePaths
                          .Select(p => $@"{p}\Perforce\p4merge.exe")
                          .ToArray();
 }
示例#4
0
 static KDiff3DiffProgram()
 {
     DefaultSearchPaths = WindowsProgramFilePaths
                          .Select(p => $@"{p}\KDiff3\KDiff3.exe")
                          .ToArray();
 }