Set edit predictions to default to the Zed provider (#27394)

Release Notes:

- Changed the default edit prediction provider from Copilot to Zed
This commit is contained in:
Mikayla Maki 2025-03-24 20:45:06 -07:00 committed by GitHub
parent ffa736e566
commit 42f01cc903
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 43 deletions

View file

@ -1,9 +1,7 @@
use std::any::{Any, TypeId};
use command_palette_hooks::CommandPaletteFilter;
use feature_flags::{
FeatureFlagAppExt as _, PredictEditsFeatureFlag, PredictEditsRateCompletionsFeatureFlag,
};
use feature_flags::{FeatureFlagAppExt as _, PredictEditsRateCompletionsFeatureFlag};
use gpui::actions;
use language::language_settings::{AllLanguageSettings, EditPredictionProvider};
use settings::update_settings_file;
@ -24,16 +22,14 @@ pub fn init(cx: &mut App) {
workspace.register_action(
move |workspace, _: &zed_actions::OpenZedPredictOnboarding, window, cx| {
if cx.has_flag::<PredictEditsFeatureFlag>() {
ZedPredictModal::toggle(
workspace,
workspace.user_store().clone(),
workspace.client().clone(),
workspace.app_state().fs.clone(),
window,
cx,
)
}
ZedPredictModal::toggle(
workspace,
workspace.user_store().clone(),
workspace.client().clone(),
workspace.app_state().fs.clone(),
window,
cx,
)
},
);