Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

debugger: Use debugpy's suggested names for child sessions (#33885)

Cole Miller38544e514abc
diff --git a/crates/dap_adapters/src/python.rs b/crates/dap_adapters/src/python.rs
index 43d1246d0c8..dc3d15e1245 100644
--- a/crates/dap_adapters/src/python.rs
+++ b/crates/dap_adapters/src/python.rs
@@ -660,6 +660,15 @@ impl DebugAdapter for PythonDebugAdapter {
self.get_installed_binary(delegate, &config, None, user_args, toolchain, false)
.await
}
+
+ fn label_for_child_session(&self, args: &StartDebuggingRequestArguments) -> Option<String> {
+ let label = args
+ .configuration
+ .get("name")?
+ .as_str()
+ .filter(|label| !label.is_empty())?;
+ Some(label.to_owned())
+ }
}
async fn fetch_latest_adapter_version_from_github(