aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2019-02-22 11:31:35 -0800
committerVictor Romero <romerosanchezv@gmail.com>2019-02-22 11:31:35 -0800
commit233c4c358a6156913ef635be7717ca83c1c34b3e (patch)
treef641df689161ce8fe5449ec41b04b8e3881d8ec5 /toolsrc/src
parent4db5f02b8bf9b206b7508a0f4169eff7dfd188ca (diff)
downloadvcpkg-233c4c358a6156913ef635be7717ca83c1c34b3e.tar.gz
vcpkg-233c4c358a6156913ef635be7717ca83c1c34b3e.zip
[vcpkg edit] Check for VS Code onlinux (#5391)
Diffstat (limited to 'toolsrc/src')
-rw-r--r--toolsrc/src/vcpkg/commands.edit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/toolsrc/src/vcpkg/commands.edit.cpp b/toolsrc/src/vcpkg/commands.edit.cpp
index 044ae1c47..c9d52c572 100644
--- a/toolsrc/src/vcpkg/commands.edit.cpp
+++ b/toolsrc/src/vcpkg/commands.edit.cpp
@@ -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); });