mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[vcpkg] fix edit command on windows (#15767)
* [vcpkg] fix edit command on windows * format
This commit is contained in:
parent
3912524298
commit
c977e3861d
@ -263,8 +263,8 @@ namespace vcpkg::Commands::Edit
|
||||
if (editor_exe == "Code.exe" || editor_exe == "Code - Insiders.exe")
|
||||
{
|
||||
// note that we are invoking cmd silently but Code.exe is relaunched from there
|
||||
System::cmd_execute_background(
|
||||
System::Command("cmd").string_arg("/c").string_arg(cmd_line.command_line()).raw_arg("<NUL"));
|
||||
System::cmd_execute_background(System::Command("cmd").string_arg("/c").raw_arg(
|
||||
Strings::concat('"', cmd_line.command_line(), R"( <NUL")")));
|
||||
Checks::exit_success(VCPKG_LINE_INFO);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user