on master help sign in
Continue command
66c035fDmitry Sharshakov
helix-term/src/commands.rs+12
@@ -306,6 +306,7 @@ impl Command {
306 dap_toggle_breakpoint, "Toggle breakpoint",
306 dap_toggle_breakpoint, "Toggle breakpoint",
307 dap_start, "Start debug session",
307 dap_start, "Start debug session",
308 dap_run, "Begin program execution",
308 dap_run, "Begin program execution",
309+ dap_continue, "Continue program execution",
309 dap_terminate, "End debug session",
310 dap_terminate, "End debug session",
310 suspend, "Suspend"
311 suspend, "Suspend"
311 );
312 );
@@ -4323,6 +4324,17 @@ fn dap_run(cx: &mut Context) {
4323 }
4324 }
4324}
4325}
4325
4326
4327+fn dap_continue(cx: &mut Context) {
4328+ use helix_lsp::block_on;
4329+
4330+ if let Some(debugger) = &mut cx.editor.debugger {
4331+ // assume 0 to continue all threads for now
4332+ // FIXME: spec conformant behavior here
4333+ let request = debugger.continue_thread(0);
4334+ let _ = block_on(request).unwrap();
4335+ }
4336+}
4337+
4326fn dap_terminate(cx: &mut Context) {
4338fn dap_terminate(cx: &mut Context) {
4327 use helix_lsp::block_on;
4339 use helix_lsp::block_on;
4328
4340