Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix context enabled race condition in edit prediction cli (#46997)
Ben Kunkle73458a074cda
diff --git a/crates/edit_prediction/src/edit_prediction.rs b/crates/edit_prediction/src/edit_prediction.rsindex 1b1834b39f7..406fd51bac5 100644--- a/crates/edit_prediction/src/edit_prediction.rs+++ b/crates/edit_prediction/src/edit_prediction.rs@@ -2198,6 +2198,9 @@ impl EditPredictionStore {}fn configure_context_retrieval(&mut self, cx: &mut Context<'_, EditPredictionStore>) {+ if cfg!(feature = "cli-support") {+ return;+ }self.use_context = cx.has_flag::<Zeta2FeatureFlag>()&& all_language_settings(None, cx).edit_predictions.use_context;}