@@ -102,10 +102,20 @@ fn thread_picker(cx: &mut Context, callback_fn: impl Fn(&mut Editor, &dap::Threa
105+ let thread_states = debugger.thread_states.clone();
105 let picker = Picker::new(
106 let picker = Picker::new(
108− |thread| thread.name.clone().into(), // TODO: include thread_states in the label
109+ move |thread| {
115+ .unwrap_or(&"unknown".to_owned())
109 move |editor, thread, _action| callback_fn(editor, thread),
119 move |editor, thread, _action| callback_fn(editor, thread),
111 cx.push_layer(Box::new(picker))
121 cx.push_layer(Box::new(picker))