Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
edit_prediction_button: Fix Copilot menu not updating after sign out (#38854)
Xiaobo Liubd3cccea1549
diff --git a/crates/edit_prediction_button/src/edit_prediction_button.rs b/crates/edit_prediction_button/src/edit_prediction_button.rsindex 8822c05f6c4..b2186c6aae5 100644--- a/crates/edit_prediction_button/src/edit_prediction_button.rs+++ b/crates/edit_prediction_button/src/edit_prediction_button.rs@@ -132,7 +132,8 @@ impl Render for EditPredictionButton {div().child(PopoverMenu::new("copilot").menu(move |window, cx| {- Some(match status {+ let current_status = Copilot::global(cx)?.read(cx).status();+ Some(match current_status {Status::Authorized => this.update(cx, |this, cx| {this.build_copilot_context_menu(window, cx)}),