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:
parent
ffa736e566
commit
42f01cc903
4 changed files with 15 additions and 43 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue