debugger: Fix Debugpy spawning & session removal (#28577)

Piotr Osiewicz created

Closes #ISSUE

Release Notes:

- N/A

Change summary

crates/dap_adapters/src/python.rs                         | 2 +-
crates/debugger_ui/src/session/running/breakpoint_list.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Detailed changes

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)

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,