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

@ -6,9 +6,7 @@ use editor::{
scroll::Autoscroll,
Editor,
};
use feature_flags::{
FeatureFlagAppExt, PredictEditsFeatureFlag, PredictEditsRateCompletionsFeatureFlag,
};
use feature_flags::{FeatureFlagAppExt, PredictEditsRateCompletionsFeatureFlag};
use fs::Fs;
use gpui::{
actions, div, pulsating_between, Action, Animation, AnimationExt, App, AsyncWindowContext,
@ -232,10 +230,6 @@ impl Render for InlineCompletionButton {
}
EditPredictionProvider::Zed => {
if !cx.has_flag::<PredictEditsFeatureFlag>() {
return div();
}
let enabled = self.editor_enabled.unwrap_or(true);
let zeta_icon = if enabled {
@ -258,7 +252,7 @@ impl Render for InlineCompletionButton {
return div().child(
IconButton::new("zed-predict-pending-button", zeta_icon)
.shape(IconButtonShape::Square)
.indicator(Indicator::dot().color(Color::Error))
.indicator(Indicator::dot().color(Color::Muted))
.indicator_border_color(Some(cx.theme().colors().status_bar_background))
.tooltip(move |window, cx| {
Tooltip::with_meta(