Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/commands/dap.rs')
-rw-r--r--helix-term/src/commands/dap.rs18
1 files changed, 14 insertions, 4 deletions
diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs
index 0e50377a..da2b60da 100644
--- a/helix-term/src/commands/dap.rs
+++ b/helix-term/src/commands/dap.rs
@@ -73,9 +73,14 @@ fn thread_picker(
let debugger = debugger!(editor);
let thread_states = debugger.thread_states.clone();
- let picker = Picker::new(threads, thread_states, move |cx, thread, _action| {
- callback_fn(cx.editor, thread)
- })
+ let columns = vec![];
+ let picker = Picker::new(
+ columns,
+ 0,
+ threads,
+ thread_states,
+ move |cx, thread, _action| callback_fn(cx.editor, thread),
+ )
.with_preview(move |editor, thread| {
let frames = editor.debugger.as_ref()?.stack_frames.get(&thread.id)?;
let frame = frames.first()?;
@@ -268,7 +273,11 @@ pub fn dap_launch(cx: &mut Context) {
let templates = config.templates.clone();
+ let columns = vec![];
+
cx.push_layer(Box::new(overlaid(Picker::new(
+ columns,
+ 0,
templates,
(),
|cx, template, _action| {
@@ -736,7 +745,8 @@ pub fn dap_switch_stack_frame(cx: &mut Context) {
let frames = debugger.stack_frames[&thread_id].clone();
- let picker = Picker::new(frames, (), move |cx, frame, _action| {
+ let columns = vec![];
+ let picker = Picker::new(columns, 0, frames, (), move |cx, frame, _action| {
let debugger = debugger!(cx.editor);
// TODO: this should be simpler to find
let pos = debugger.stack_frames[&thread_id]