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: Fix Debugpy spawning & session removal (#28577)

Piotr Osiewiczc7d3fbcac18d
diff --git a/crates/dap_adapters/src/python.rs b/crates/dap_adapters/src/python.rs
index 41bf79ff7da..daed07a653b 100644
--- a/crates/dap_adapters/src/python.rs
+++ b/crates/dap_adapters/src/python.rs
@@ -76,7 +76,7 @@ impl DebugAdapter for PythonDebugAdapter {
user_installed_path
} else {
let adapter_path = paths::debug_adapters_dir().join(self.name().as_ref());
- let file_name_prefix = format!("{}_", Self::ADAPTER_PACKAGE_NAME);
+ let file_name_prefix = format!("{}_", Self::ADAPTER_NAME);
util::fs::find_file_name_in_dir(adapter_path.as_path(), |file_name| {
file_name.starts_with(&file_name_prefix)
diff --git a/crates/debugger_ui/src/session/running/breakpoint_list.rs b/crates/debugger_ui/src/session/running/breakpoint_list.rs
index 3a9ddd1869a..ff7ead4123e 100644
--- a/crates/debugger_ui/src/session/running/breakpoint_list.rs
+++ b/crates/debugger_ui/src/session/running/breakpoint_list.rs
@@ -291,7 +291,7 @@ impl LineBreakpoint {
.end_hover_slot(
IconButton::new(
SharedString::from(format!(
- "breakpoint-ui-on-click-go-to-line-{:?}/{}:{}",
+ "breakpoint-ui-on-click-go-to-line-remove-{:?}/{}:{}",
dir, name, line
)),
IconName::Close,