Load themes from settings and rework Settings
trait
This commit is contained in:
parent
98e2490807
commit
e67048ee7b
19 changed files with 114 additions and 86 deletions
|
@ -2,7 +2,7 @@ use collections::HashMap;
|
|||
use gpui2::AppContext;
|
||||
use schemars::JsonSchema;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use settings2::Setting;
|
||||
use settings2::Settings;
|
||||
use std::sync::Arc;
|
||||
|
||||
#[derive(Clone, Default, Serialize, Deserialize, JsonSchema)]
|
||||
|
@ -33,7 +33,7 @@ pub struct LspSettings {
|
|||
pub initialization_options: Option<serde_json::Value>,
|
||||
}
|
||||
|
||||
impl Setting for ProjectSettings {
|
||||
impl Settings for ProjectSettings {
|
||||
const KEY: Option<&'static str> = None;
|
||||
|
||||
type FileContent = Self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue