Fix spurious setting error log messages (#2498)
Fixes a bug introduced in https://github.com/zed-industries/zed/pull/2448, where error messages would be logged if the user config didn't specify certain fields like `journal` or `telemetry`.
This commit is contained in:
commit
e129ed2d91
6 changed files with 29 additions and 57 deletions
|
@ -10,17 +10,16 @@ pub struct EditorSettings {
|
|||
pub show_scrollbars: ShowScrollbars,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq, Default)]
|
||||
#[derive(Copy, Clone, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum ShowScrollbars {
|
||||
#[default]
|
||||
Auto,
|
||||
System,
|
||||
Always,
|
||||
Never,
|
||||
}
|
||||
|
||||
#[derive(Clone, Serialize, Deserialize, JsonSchema)]
|
||||
#[derive(Clone, Default, Serialize, Deserialize, JsonSchema)]
|
||||
pub struct EditorSettingsContent {
|
||||
pub cursor_blink: Option<bool>,
|
||||
pub hover_popover_enabled: Option<bool>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue