Fix detection of 64-bit VSCode

This commit is contained in:
Alexander Karatarakis 2017-08-21 17:19:40 -07:00
parent c56694fbce
commit c0fdbfb2e8

View File

@ -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";