Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ep: Only fetch experiments if `cx.is_staff` (#52739)

Ben Kunklec332be88fbbd
diff --git a/crates/edit_prediction/src/edit_prediction.rs b/crates/edit_prediction/src/edit_prediction.rs
index 34980e00ced..3a66f712e31 100644
--- a/crates/edit_prediction/src/edit_prediction.rs
+++ b/crates/edit_prediction/src/edit_prediction.rs
@@ -778,8 +778,11 @@ impl EditPredictionStore {
while current_user.borrow().is_none() {
current_user.next().await;
}
+
this.update(cx, |this, cx| {
- this.refresh_available_experiments(cx);
+ if cx.is_staff() {
+ this.refresh_available_experiments(cx);
+ }
})
.log_err();
});