mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01: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__)
|
||||
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); });
|
||||
|
Loading…
x
Reference in New Issue
Block a user