windows: Fix popup window when using external command (#15547)
Thanks techs-sus on Discord. Co-authored-by: shenjack <3695888@qq.com> Co-authored-by: techs-sus <discord> Release Notes: - N/A Co-authored-by: shenjack <3695888@qq.com> Co-authored-by: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
parent
8e8927db4b
commit
598d62de04
3 changed files with 9 additions and 0 deletions
|
@ -5449,6 +5449,11 @@ impl Project {
|
|||
})?;
|
||||
|
||||
let mut child = smol::process::Command::new(command);
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
use smol::process::windows::CommandExt;
|
||||
child.creation_flags(windows::Win32::System::Threading::CREATE_NO_WINDOW.0);
|
||||
}
|
||||
|
||||
if let Some(working_dir_path) = working_dir_path {
|
||||
child.current_dir(working_dir_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue