mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 18:15:52 +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")
|
if (editor_exe == "Code.exe" || editor_exe == "Code - Insiders.exe")
|
||||||
{
|
{
|
||||||
// note that we are invoking cmd silently but Code.exe is relaunched from there
|
// note that we are invoking cmd silently but Code.exe is relaunched from there
|
||||||
System::cmd_execute_background(
|
System::cmd_execute_background(System::Command("cmd").string_arg("/c").raw_arg(
|
||||||
System::Command("cmd").string_arg("/c").string_arg(cmd_line.command_line()).raw_arg("<NUL"));
|
Strings::concat('"', cmd_line.command_line(), R"( <NUL")")));
|
||||||
Checks::exit_success(VCPKG_LINE_INFO);
|
Checks::exit_success(VCPKG_LINE_INFO);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user