Don't show thread picker for single-threaded targets
commit00cccdc62aac16c3b7cbf42b7b2dd8dfebb45563
authorDmitry Sharshakov <d3dx12.xx@gmail.com>
dateSat 4 Sep 2021, 09:19 (5 years ago)
parent9939dbf
helix-term/src/commands/dap.rs+5
@@ -97,6 +97,11 @@ fn thread_picker(cx: &mut Context, callback_fn: impl Fn(&mut Editor, &dap::Threa
9797 }
9898 };
9999
100+ if threads.len() == 1 {
101+ callback_fn(cx.editor, &threads[0]);
102+ return;
103+ }
104+
100105 let picker = Picker::new(
101106 true,
102107 threads,