Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
debugger: Do not query threads when session is still building (#32852)
Piotr Osiewiczd4c9522da786
diff --git a/crates/debugger_ui/src/debugger_panel.rs b/crates/debugger_ui/src/debugger_panel.rsindex 6e8fcdb2aa6..bea3b396576 100644--- a/crates/debugger_ui/src/debugger_panel.rs+++ b/crates/debugger_ui/src/debugger_panel.rs@@ -858,16 +858,21 @@ impl DebugPanel {let threads =running_state.update(cx, |running_state, cx| {let session = running_state.session();- session- .update(cx, |session, cx| session.threads(cx))+ session.read(cx).is_running().then(|| {+ session.update(cx, |session, cx| {+ session.threads(cx)+ })+ })});- self.render_thread_dropdown(- &running_state,- threads,- window,- cx,- )+ threads.and_then(|threads| {+ self.render_thread_dropdown(+ &running_state,+ threads,+ window,+ cx,+ )+ })}).when(!is_side, |this| this.gap_2().child(Divider::vertical()))},