Fix debug client terminate bug where some highlights were not cleared
Co-authored-by: Remco Smits <djsmits12@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user