Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
debugger: Do not swallow `port` property when converting launch.json (#32621)
Piotr Osiewicz1e244f4affa6
diff --git a/crates/task/src/vscode_debug_format.rs b/crates/task/src/vscode_debug_format.rsindex 9426f87cb7b..facde2bba00 100644--- a/crates/task/src/vscode_debug_format.rs+++ b/crates/task/src/vscode_debug_format.rs@@ -33,6 +33,9 @@ impl VsCodeDebugTaskDefinition {if let Some(config) = config.as_object_mut() {if adapter == "JavaScript" {config.insert("type".to_owned(), self.r#type.clone().into());+ if let Some(port) = self.port {+ config.insert("port".to_owned(), port.into());+ }}}let definition = DebugScenario {@@ -149,6 +152,7 @@ mod tests {"X": "Y",},"type": "node",+ "port": 17,}),tcp_connection: Some(TcpArgumentsTemplate {port: Some(17),