mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
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
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -8323,6 +8323,7 @@ dependencies = [
|
|||||||
"unindent",
|
"unindent",
|
||||||
"util",
|
"util",
|
||||||
"which 6.0.3",
|
"which 6.0.3",
|
||||||
|
"windows 0.58.0",
|
||||||
"worktree",
|
"worktree",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -71,6 +71,9 @@ text.workspace = true
|
|||||||
util.workspace = true
|
util.workspace = true
|
||||||
which.workspace = true
|
which.workspace = true
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "windows")'.dependencies]
|
||||||
|
windows.workspace = true
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
client = { workspace = true, features = ["test-support"] }
|
client = { workspace = true, features = ["test-support"] }
|
||||||
collections = { workspace = true, features = ["test-support"] }
|
collections = { workspace = true, features = ["test-support"] }
|
||||||
|
@ -5449,6 +5449,11 @@ impl Project {
|
|||||||
})?;
|
})?;
|
||||||
|
|
||||||
let mut child = smol::process::Command::new(command);
|
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 {
|
if let Some(working_dir_path) = working_dir_path {
|
||||||
child.current_dir(working_dir_path);
|
child.current_dir(working_dir_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user