Remove the assistant2 crate (#12380)

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2024-05-28 16:26:35 +02:00 committed by GitHub
parent 59662fbeb6
commit b466a8b828
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 0 additions and 3618 deletions

View file

@ -1,26 +0,0 @@
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use settings::{Settings, SettingsSources};
#[derive(Default, Debug, Deserialize, Serialize, Clone)]
pub struct AssistantSettings {
pub enabled: bool,
}
#[derive(Default, Debug, Deserialize, Serialize, Clone, JsonSchema)]
pub struct AssistantSettingsContent {
pub enabled: Option<bool>,
}
impl Settings for AssistantSettings {
const KEY: Option<&'static str> = Some("assistant_v2");
type FileContent = AssistantSettingsContent;
fn load(
sources: SettingsSources<Self::FileContent>,
_: &mut gpui::AppContext,
) -> anyhow::Result<Self> {
Ok(sources.json_merge().unwrap_or_else(|_| Default::default()))
}
}