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:
parent
7a34dd9888
commit
d694458659
4 changed files with 13 additions and 12 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue