mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 00:09:00 +08:00
Fix detection of 64-bit VSCode
This commit is contained in:
parent
c56694fbce
commit
c0fdbfb2e8
@ -30,6 +30,15 @@ namespace vcpkg::Commands::Edit
|
||||
}
|
||||
}
|
||||
|
||||
if (env_EDITOR.empty())
|
||||
{
|
||||
const fs::path CODE_EXE_PATH = System::get_ProgramFiles_platform_bitness() / "Microsoft VS Code/Code.exe";
|
||||
if (fs.exists(CODE_EXE_PATH))
|
||||
{
|
||||
env_EDITOR = CODE_EXE_PATH;
|
||||
}
|
||||
}
|
||||
|
||||
if (env_EDITOR.empty())
|
||||
{
|
||||
const fs::path CODE_EXE_PATH = System::get_ProgramFiles_32_bit() / "Microsoft VS Code/Code.exe";
|
||||
|
Loading…
Reference in New Issue
Block a user