Skip to content

Commit

Permalink
config: Deny unknown fields in [editor.smart-tab]
Browse files Browse the repository at this point in the history
Previously a typo like "enabled" would silently be discarded. Instead
we should error when a field is configured which doesn't exist.

Fixes #12739
  • Loading branch information
the-mikedavis committed Jan 31, 2025
1 parent 025719c commit 28047fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ pub struct Config {
}

#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, Eq, PartialOrd, Ord)]
#[serde(rename_all = "kebab-case", default)]
#[serde(default, rename_all = "kebab-case", deny_unknown_fields)]
pub struct SmartTabConfig {
pub enable: bool,
pub supersede_menu: bool,
Expand Down

0 comments on commit 28047fe

Please sign in to comment.