mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 12:26:08 +08:00
[vcpkg edit] Check for VS Code onlinux (#5391)
This commit is contained in:
parent
4db5f02b8b
commit
233c4c358a
@ -157,6 +157,9 @@ namespace vcpkg::Commands::Edit
|
|||||||
#elif defined(__APPLE__)
|
#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 - Insiders.app/Contents/Resources/app/bin/code"});
|
||||||
candidate_paths.push_back(fs::path{"/Applications/Visual Studio Code.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
|
#endif
|
||||||
|
|
||||||
const auto it = Util::find_if(candidate_paths, [&](const fs::path& p) { return fs.exists(p); });
|
const auto it = Util::find_if(candidate_paths, [&](const fs::path& p) { return fs.exists(p); });
|
||||||
|
Loading…
Reference in New Issue
Block a user