Remove shortcut for starting debug

pull/574/head
Dmitry Sharshakov 3 years ago
parent 299da5a35b
commit 235a84d989
No known key found for this signature in database
GPG Key ID: 471FD32E15FD8473

@ -305,7 +305,6 @@ impl Command {
select_textobject_around, "Select around object", select_textobject_around, "Select around object",
select_textobject_inner, "Select inside object", select_textobject_inner, "Select inside object",
dap_toggle_breakpoint, "Toggle breakpoint", dap_toggle_breakpoint, "Toggle breakpoint",
dap_start, "Start debug session",
dap_run, "Begin program execution", dap_run, "Begin program execution",
dap_continue, "Continue program execution", dap_continue, "Continue program execution",
dap_pause, "Pause program execution", dap_pause, "Pause program execution",
@ -4491,12 +4490,6 @@ fn dap_start_impl(editor: &mut Editor, name: Option<&str>, params: Option<Vec<&s
editor.debugger_events.push(stream); editor.debugger_events.push(stream);
} }
fn dap_start(cx: &mut Context) {
// TODO: check that first config does not have templates
// which cannot be handled with a shortcut
dap_start_impl(&mut cx.editor, None, None);
}
fn dap_toggle_breakpoint(cx: &mut Context) { fn dap_toggle_breakpoint(cx: &mut Context) {
use helix_lsp::block_on; use helix_lsp::block_on;

@ -486,7 +486,6 @@ impl Default for Keymaps {
"a" => code_action, "a" => code_action,
"'" => last_picker, "'" => last_picker,
"d" => { "Debug" "d" => { "Debug"
"s" => dap_start,
"b" => dap_toggle_breakpoint, "b" => dap_toggle_breakpoint,
"r" => dap_run, "r" => dap_run,
"c" => dap_continue, "c" => dap_continue,

@ -97,7 +97,7 @@ port-arg = "-p {}"
[[language.debugger.templates]] [[language.debugger.templates]]
name = "binary" name = "binary"
request = "launch" request = "launch"
args = { console = "internalConsole", program = "main" } args = { console = "internalConsole", program = "{0}" }
[[language.debugger.templates]] [[language.debugger.templates]]
name = "attach" name = "attach"
@ -125,7 +125,7 @@ port-arg = "-p {}"
[[language.debugger.templates]] [[language.debugger.templates]]
name = "binary" name = "binary"
request = "launch" request = "launch"
args = { console = "internalConsole", program = "main" } args = { console = "internalConsole", program = "{0}" }
[[language.debugger.templates]] [[language.debugger.templates]]
name = "attach" name = "attach"
@ -155,12 +155,12 @@ port-arg = "-l 127.0.0.1:{}"
[[language.debugger.templates]] [[language.debugger.templates]]
name = "source" name = "source"
request = "launch" request = "launch"
args = { mode = "debug", program = "main.go" } args = { mode = "debug", program = "{0}" }
[[language.debugger.templates]] [[language.debugger.templates]]
name = "binary" name = "binary"
request = "launch" request = "launch"
args = { mode = "exec", program = "./main" } args = { mode = "exec", program = "{0}" }
[[language.debugger.templates]] [[language.debugger.templates]]
name = "test" name = "test"

Loading…
Cancel
Save