mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 09:18:59 +00:00
cli: ensure vscode server outlives CLI on windows (#210279)
This commit is contained in:
parent
a9174e5ac9
commit
d30b358ac7
|
@ -606,7 +606,9 @@ impl<'a> ServerBuilder<'a> {
|
|||
// Original issue: https://github.com/microsoft/vscode/issues/184058
|
||||
// Partial fix: https://github.com/microsoft/vscode/pull/184621
|
||||
#[cfg(target_os = "windows")]
|
||||
let cmd = cmd.creation_flags(winapi::um::winbase::CREATE_NO_WINDOW);
|
||||
let cmd = cmd.creation_flags(
|
||||
winapi::um::winbase::CREATE_NO_WINDOW | winapi::um::winbase::CREATE_NEW_PROCESS_GROUP | winapi::um::winbase::CREATE_BREAKAWAY_FROM_JOB,
|
||||
);
|
||||
|
||||
let child = cmd
|
||||
.stderr(std::process::Stdio::piped())
|
||||
|
|
Loading…
Reference in a new issue