From be9dc5802a8e2d6d26d6f9c00475aedafef97c61 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sun, 22 Aug 2021 11:21:02 +0300 Subject: [PATCH] editor: mark target as running when continued --- helix-term/src/application.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 6e3b6e993..9f0e751ea 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -324,6 +324,13 @@ pub async fn handle_debugger_message(&mut self, payload: helix_dap::Payload) { self.editor .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 => { log::warn!("Unhandled event {:?}", ev); return; // return early to skip render