File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 1- using System . Diagnostics ;
1+ using System ;
2+ using System . Diagnostics ;
23using System . IO ;
34using System . Runtime . Versioning ;
45using System . Text ;
@@ -27,21 +28,17 @@ public string FindGitExecutable()
2728
2829 public string FindVSCode ( )
2930 {
30- if ( File . Exists ( "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" ) )
31- {
32- return "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" ;
33- }
34-
31+ var toolPath = "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" ;
32+ if ( File . Exists ( toolPath ) )
33+ return toolPath ;
3534 return string . Empty ;
3635 }
3736
3837 public string FindFleet ( )
3938 {
40- if ( File . Exists ( "/Applications/Fleet.app/Contents/MacOS/Fleet" ) )
41- {
42- return "/Applications/Fleet.app/Contents/MacOS/Fleet" ;
43- }
44-
39+ var toolPath = $ "{ Environment . GetFolderPath ( Environment . SpecialFolder . UserProfile ) } /Applications/Fleet.app/Contents/MacOS/Fleet";
40+ if ( File . Exists ( toolPath ) )
41+ return toolPath ;
4542 return string . Empty ;
4643 }
4744
You can’t perform that action at this time.
0 commit comments