language_models: Fix casing of ZedAiConfiguration (#33712)

This PR fixes the casing of the `ZedAiConfiguration` identifier.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-07-01 09:29:43 -04:00 committed by GitHub
parent 62e8f45304
commit 52c42125a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1057,7 +1057,7 @@ fn response_lines<T: DeserializeOwned>(
}
#[derive(IntoElement, RegisterComponent)]
struct ZedAIConfiguration {
struct ZedAiConfiguration {
is_connected: bool,
plan: Option<proto::Plan>,
subscription_period: Option<(DateTime<Utc>, DateTime<Utc>)>,
@ -1068,7 +1068,7 @@ struct ZedAIConfiguration {
sign_in_callback: Arc<dyn Fn(&mut Window, &mut App) + Send + Sync>,
}
impl RenderOnce for ZedAIConfiguration {
impl RenderOnce for ZedAiConfiguration {
fn render(self, _window: &mut Window, _cx: &mut App) -> impl IntoElement {
const ZED_PRICING_URL: &str = "https://zed.dev/pricing";
@ -1195,7 +1195,7 @@ impl Render for ConfigurationView {
let state = self.state.read(cx);
let user_store = state.user_store.read(cx);
ZedAIConfiguration {
ZedAiConfiguration {
is_connected: !state.is_signed_out(),
plan: user_store.current_plan(),
subscription_period: user_store.subscription_period(),
@ -1208,7 +1208,7 @@ impl Render for ConfigurationView {
}
}
impl Component for ZedAIConfiguration {
impl Component for ZedAiConfiguration {
fn scope() -> ComponentScope {
ComponentScope::Agent
}
@ -1220,7 +1220,7 @@ impl Component for ZedAIConfiguration {
eligible_for_trial: bool,
has_accepted_terms_of_service: bool,
) -> AnyElement {
ZedAIConfiguration {
ZedAiConfiguration {
is_connected,
plan,
subscription_period: plan