editor: mark target as running when continued

This commit is contained in:
Dmitry Sharshakov 2021-08-22 11:21:02 +03:00
parent d93cd2a261
commit be9dc5802a
No known key found for this signature in database
GPG Key ID: 471FD32E15FD8473

View File

@ -324,6 +324,13 @@ pub async fn handle_debugger_message(&mut self, payload: helix_dap::Payload) {
self.editor self.editor
.set_status("Debugged application started".to_owned()); .set_status("Debugged application started".to_owned());
} }
Event::Continued(_) => {
if let Some(debugger) = self.editor.debugger.as_mut() {
debugger.stopped_thread = None;
debugger.stack_pointer = None;
debugger.is_running = true;
}
}
ev => { ev => {
log::warn!("Unhandled event {:?}", ev); log::warn!("Unhandled event {:?}", ev);
return; // return early to skip render return; // return early to skip render