edit predictions: Rename edit prediction modes (#25657)

`auto` -> `stealth`
`eager_preview` -> `eager`

Release Notes:

- N/A

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
This commit is contained in:
Agus Zubiaga 2025-02-26 17:23:39 -03:00 committed by GitHub
parent 7a34dd9888
commit d694458659
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 12 deletions

View file

@ -592,8 +592,8 @@ impl InlineCompletionButton {
if cx.has_flag::<feature_flags::PredictEditsNonEagerModeFeatureFlag>() {
let is_eager_preview_enabled = match settings.edit_predictions_mode() {
language::EditPredictionsMode::Auto => false,
language::EditPredictionsMode::EagerPreview => true,
language::EditPredictionsMode::Subtle => false,
language::EditPredictionsMode::Eager => true,
};
menu = menu.separator().toggleable_entry(
"Eager Preview Mode",
@ -608,8 +608,8 @@ impl InlineCompletionButton {
cx,
move |settings, _cx| {
let new_mode = match is_eager_preview_enabled {
true => language::EditPredictionsMode::Auto,
false => language::EditPredictionsMode::EagerPreview,
true => language::EditPredictionsMode::Subtle,
false => language::EditPredictionsMode::Eager,
};
if let Some(edit_predictions) = settings.edit_predictions.as_mut() {