Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
debugger: Fix spawned debug adapters taking over Zed's shell (#29373)
Anthony Eida98c648201b0
diff --git a/crates/dap/src/transport.rs b/crates/dap/src/transport.rsindex 1e2a8badaf9..224b08d62b8 100644--- a/crates/dap/src/transport.rs+++ b/crates/dap/src/transport.rs@@ -552,7 +552,9 @@ impl TcpTransport {let host = connection_args.host;let port = connection_args.port;- let mut command = util::command::new_smol_command(&binary.command);+ let mut command = util::command::new_std_command(&binary.command);+ util::set_pre_exec_to_start_new_session(&mut command);+ let mut command = smol::process::Command::from(command);if let Some(cwd) = &binary.cwd {command.current_dir(cwd);@@ -636,7 +638,9 @@ pub struct StdioTransport {impl StdioTransport {#[allow(dead_code, reason = "This is used in non test builds of Zed")]async fn start(binary: &DebugAdapterBinary, _: AsyncApp) -> Result<(TransportPipe, Self)> {- let mut command = util::command::new_smol_command(&binary.command);+ let mut command = util::command::new_std_command(&binary.command);+ util::set_pre_exec_to_start_new_session(&mut command);+ let mut command = smol::process::Command::from(command);if let Some(cwd) = &binary.cwd {command.current_dir(cwd);