From d93cd2a2611b3305293274f8fb590a01d4b99584 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sun, 22 Aug 2021 11:16:11 +0300 Subject: editor: support stepIn, stepOut, next and pause commands --- helix-dap/src/client.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'helix-dap/src/client.rs') diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs index e2531e11..ebaae83c 100644 --- a/helix-dap/src/client.rs +++ b/helix-dap/src/client.rs @@ -30,6 +30,7 @@ pub struct Client { pub breakpoints: HashMap>, // TODO: multiple threads support pub stack_pointer: Option, + pub stopped_thread: Option, pub is_running: bool, } @@ -52,6 +53,7 @@ impl Client { // breakpoints: HashMap::new(), stack_pointer: None, + stopped_thread: None, is_running: false, }; @@ -346,9 +348,7 @@ impl Client { } pub async fn pause(&mut self, thread_id: usize) -> Result<()> { - let args = requests::PauseArguments { - thread_id, - }; + let args = requests::PauseArguments { thread_id }; self.request::(args).await } -- cgit v1.2.3-70-g09d2