Don't show thread picker for single-threaded targets
This commit is contained in:
parent
9939dbf119
commit
00cccdc62a
1 changed files with 5 additions and 0 deletions
|
@ -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(
|
let picker = Picker::new(
|
||||||
true,
|
true,
|
||||||
threads,
|
threads,
|
||||||
|
|
Loading…
Add table
Reference in a new issue