Fix debug client terminate bug where some highlights were not cleared

Co-authored-by: Remco Smits <djsmits12@gmail.com>
This commit is contained in:
Anthony Eid
2024-11-12 15:34:19 -05:00
parent ce30deac63
commit ca80d0c3bd
2 changed files with 4 additions and 4 deletions

View File

@@ -130,10 +130,6 @@ impl DebugPanel {
project::Event::DebugClientStopped(client_id) => {
cx.emit(DebugPanelEvent::ClientStopped(*client_id));
this.dap_store.update(cx, |store, cx| {
store.remove_active_debug_line_for_client(client_id, cx);
});
this.thread_states
.retain(|&(client_id_, _), _| client_id_ != *client_id);

View File

@@ -308,6 +308,10 @@ impl DebugPanelItem {
self.update_thread_state_status(ThreadStatus::Stopped, cx);
self.dap_store.update(cx, |store, cx| {
store.remove_active_debug_line_for_client(client_id, cx);
});
cx.emit(DebugPanelItemEvent::Close);
}