|
|
@ -304,6 +304,7 @@ impl Command {
|
|
|
|
select_textobject_inner, "Select inside object",
|
|
|
|
select_textobject_inner, "Select inside object",
|
|
|
|
dap_toggle_breakpoint, "Toggle breakpoint",
|
|
|
|
dap_toggle_breakpoint, "Toggle breakpoint",
|
|
|
|
dap_launch, "Launch debugger",
|
|
|
|
dap_launch, "Launch debugger",
|
|
|
|
|
|
|
|
dap_run, "Begin program execution",
|
|
|
|
suspend, "Suspend"
|
|
|
|
suspend, "Suspend"
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -4326,3 +4327,12 @@ fn dap_launch(cx: &mut Context) {
|
|
|
|
let _ = block_on(request).unwrap();
|
|
|
|
let _ = block_on(request).unwrap();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn dap_run(cx: &mut Context) {
|
|
|
|
|
|
|
|
use helix_lsp::block_on;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if let Some(debugger) = &mut cx.editor.debugger {
|
|
|
|
|
|
|
|
let request = debugger.configuration_done();
|
|
|
|
|
|
|
|
let _ = block_on(request).unwrap();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|