diff --git a/crates/edit_prediction_ui/src/edit_prediction_button.rs b/crates/edit_prediction_ui/src/edit_prediction_button.rs index cd3164d2ee..1d1a423cc8 100644 --- a/crates/edit_prediction_ui/src/edit_prediction_button.rs +++ b/crates/edit_prediction_ui/src/edit_prediction_button.rs @@ -712,14 +712,16 @@ impl EditPredictionButton { match language_state.clone() { Some((language, false)) => { - menu = menu.item( - entry - .disabled(true) - .documentation_aside(DocumentationSide::Left, move |_cx| { - Label::new(format!("Edit predictions cannot be toggled for this buffer because they are disabled for {}", language.name())) - .into_any_element() - }) - ); + menu = menu.item(entry.disabled(true).documentation_aside( + DocumentationSide::Left, + move |_cx| { + Label::new(format!( + "Edit predictions are disabled for {}", + language.name() + )) + .into_any_element() + }, + )); } Some(_) | None => menu = menu.item(entry), }