Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ep: Refresh available experiments when opening ep button (#50949)
Ben Kunklea5525a811c91
diff --git a/crates/edit_prediction_ui/src/edit_prediction_button.rs b/crates/edit_prediction_ui/src/edit_prediction_button.rsindex 5e9ec08b964..dac4c812f8a 100644--- a/crates/edit_prediction_ui/src/edit_prediction_button.rs+++ b/crates/edit_prediction_ui/src/edit_prediction_button.rs@@ -1195,6 +1195,9 @@ impl EditPredictionButton {if cx.is_staff() {if let Some(store) = EditPredictionStore::try_global(cx) {+ store.update(cx, |store, cx| {+ store.refresh_available_experiments(cx);+ });let store = store.read(cx);let experiments = store.available_experiments().to_vec();let preferred = store.preferred_experiment().map(|s| s.to_owned());