Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix `connect.host` setting being ignored by debugpy (#43190)
Andrew Farkas0a6cb6117bfe
diff --git a/crates/dap_adapters/src/python.rs b/crates/dap_adapters/src/python.rsindex 4d81e5ba851..2f84193ac93 100644--- a/crates/dap_adapters/src/python.rs+++ b/crates/dap_adapters/src/python.rs@@ -368,6 +368,9 @@ impl PythonDebugAdapter {bail!("Cannot have two different ports in debug configuration")}+ if let Some(hostname) = config_host {+ tcp_connection.host = Some(hostname.parse().context("hostname must be IPv4")?);+ }tcp_connection.port = config_port;DebugpyLaunchMode::AttachWithConnect { host: config_host }} else {