From 5e2da042efd66db864485a0038f2871a724d2dda Mon Sep 17 00:00:00 2001 From: devjasperwang Date: Mon, 28 Jul 2025 22:44:22 +0800 Subject: [PATCH] debugger: Fix the terminal popping up when the Rust debugger starts on Windows (#35125) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR fixs a terminal popping up when debugging Rust on Windows. Release Notes: - N/A --------- Co-authored-by: 张小白 <364772080@qq.com> --- crates/project/src/debugger/locators/cargo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/project/src/debugger/locators/cargo.rs b/crates/project/src/debugger/locators/cargo.rs index 7d70371380..fa265dae58 100644 --- a/crates/project/src/debugger/locators/cargo.rs +++ b/crates/project/src/debugger/locators/cargo.rs @@ -128,7 +128,7 @@ impl DapLocator for CargoLocator { .chain(Some("--message-format=json".to_owned())) .collect(), ); - let mut child = Command::new(program) + let mut child = util::command::new_smol_command(program) .args(args) .envs(build_config.env.iter().map(|(k, v)| (k.clone(), v.clone()))) .current_dir(cwd)