From c7d3fbcac18d923eff7f3eff7a351f907280acc0 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Fri, 11 Apr 2025 16:36:54 +0200 Subject: [PATCH] debugger: Fix Debugpy spawning & session removal (#28577) Closes #ISSUE Release Notes: - N/A --- crates/dap_adapters/src/python.rs | 2 +- crates/debugger_ui/src/session/running/breakpoint_list.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/dap_adapters/src/python.rs b/crates/dap_adapters/src/python.rs index 41bf79ff7d..daed07a653 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 3a9ddd1869..ff7ead4123 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,