Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
debugger: Disambiguate child session labels (#31526)
Cole Miller384b11392a1e
diff --git a/crates/debugger_ui/src/debugger_panel.rs b/crates/debugger_ui/src/debugger_panel.rsindex bc22962faad..b72d97501f6 100644--- a/crates/debugger_ui/src/debugger_panel.rs+++ b/crates/debugger_ui/src/debugger_panel.rs@@ -432,7 +432,10 @@ impl DebugPanel {};let dap_store_handle = self.project.read(cx).dap_store().clone();- let label = parent_session.read(cx).label().clone();+ let mut label = parent_session.read(cx).label().clone();+ if !label.ends_with("(child)") {+ label = format!("{label} (child)").into();+ }let adapter = parent_session.read(cx).adapter().clone();let mut binary = parent_session.read(cx).binary().clone();binary.request_args = request.clone();