on master help sign in
Continue command
commit66c035fa995e7061b35a48e87c3698c6f2ad72ff authorDmitry Sharshakov <d3dx12.xx@gmail.com> dateSat 21 Aug 2021, 20:42 (5 years ago) parent6709b42
1 file changed+12
helix-term/src/commands.rs+12
helix-term/src/commands.rs+12
@@ -306,6 +306,7 @@ impl Command {
306306 dap_toggle_breakpoint, "Toggle breakpoint",
307307 dap_start, "Start debug session",
308308 dap_run, "Begin program execution",
309+ dap_continue, "Continue program execution",
309310 dap_terminate, "End debug session",
310311 suspend, "Suspend"
311312 );
@@ -4323,6 +4324,17 @@ fn dap_run(cx: &mut Context) {
43234324 }
43244325}
43254326
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+
43264338fn dap_terminate(cx: &mut Context) {
43274339 use helix_lsp::block_on;
43284340