Don't show thread picker for single-threaded targets

This commit is contained in:
Dmitry Sharshakov 2021-09-04 09:19:19 +03:00
parent 9939dbf119
commit 00cccdc62a
No known key found for this signature in database
GPG key ID: 471FD32E15FD8473

View file

@ -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,