Skip to content

Commit

Permalink
[vcpkg edit] Check for VS Code onlinux (microsoft#5391)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkaratarakis authored and vicroms committed Feb 22, 2019
1 parent 4db5f02 commit 233c4c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions toolsrc/src/vcpkg/commands.edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ namespace vcpkg::Commands::Edit
#elif defined(__APPLE__)
candidate_paths.push_back(fs::path{"/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/bin/code"});
candidate_paths.push_back(fs::path{"/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code"});
#elif defined(__linux__)
candidate_paths.push_back(fs::path{"/usr/share/code/bin/code"});
candidate_paths.push_back(fs::path{"/usr/bin/code"});
#endif

const auto it = Util::find_if(candidate_paths, [&](const fs::path& p) { return fs.exists(p); });
Expand Down

0 comments on commit 233c4c3

Please sign in to comment.