aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-21 17:42:13 +0000
committerDmitry Sharshakov2021-08-21 17:42:13 +0000
commit66c035fa995e7061b35a48e87c3698c6f2ad72ff (patch)
treef14a4e877a77155f429aa6869e5579adfd4be237
parent6709b4242f5e052ea0c18de3b2211c04b26dc865 (diff)
Continue command
-rw-r--r--helix-term/src/commands.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index de1b9890..dc8d02ac 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -306,6 +306,7 @@ impl Command {
dap_toggle_breakpoint, "Toggle breakpoint",
dap_start, "Start debug session",
dap_run, "Begin program execution",
+ dap_continue, "Continue program execution",
dap_terminate, "End debug session",
suspend, "Suspend"
);
@@ -4323,6 +4324,17 @@ fn dap_run(cx: &mut Context) {
}
}
+fn dap_continue(cx: &mut Context) {
+ use helix_lsp::block_on;
+
+ if let Some(debugger) = &mut cx.editor.debugger {
+ // assume 0 to continue all threads for now
+ // FIXME: spec conformant behavior here
+ let request = debugger.continue_thread(0);
+ let _ = block_on(request).unwrap();
+ }
+}
+
fn dap_terminate(cx: &mut Context) {
use helix_lsp::block_on;