config: Deny unknown fields in `[editor.smart-tab]`

Previously a typo like "enabled" would silently be discarded. Instead
we should error when a field is configured which doesn't exist.

Fixes #12739
pull/12744/head
Michael Davis 2025-01-31 08:33:18 -05:00
parent 025719c1d8
commit 28047fed7f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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,