Don't show thread picker for single-threaded targets

pull/574/head
Dmitry Sharshakov 3 years ago
parent 9939dbf119
commit 00cccdc62a
No known key found for this signature in database
GPG Key ID: 471FD32E15FD8473

@ -97,6 +97,11 @@ fn thread_picker(cx: &mut Context, callback_fn: impl Fn(&mut Editor, &dap::Threa
}
};
if threads.len() == 1 {
callback_fn(cx.editor, &threads[0]);
return;
}
let picker = Picker::new(
true,
threads,

Loading…
Cancel
Save