aboutsummaryrefslogtreecommitdiff
path: root/helix-dap
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-22 08:16:11 +0000
committerDmitry Sharshakov2021-08-22 08:16:11 +0000
commitd93cd2a2611b3305293274f8fb590a01d4b99584 (patch)
tree968f5649ee3e171b18ff0245207ce059316cc8a7 /helix-dap
parentdfc70a12f337df57e69e3613896663c2f446df8e (diff)
editor: support stepIn, stepOut, next and pause commands
Diffstat (limited to 'helix-dap')
-rw-r--r--helix-dap/src/client.rs6
1 files changed, 3 insertions, 3 deletions
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<PathBuf, Vec<SourceBreakpoint>>,
// TODO: multiple threads support
pub stack_pointer: Option<StackFrame>,
+ pub stopped_thread: Option<usize>,
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::<requests::Pause>(args).await
}