diff --git a/.changes/fix-fs-apply-leading-dot-config.md b/.changes/fix-fs-apply-leading-dot-config.md new file mode 100644 index 0000000000..64bf594d65 --- /dev/null +++ b/.changes/fix-fs-apply-leading-dot-config.md @@ -0,0 +1,5 @@ +--- +"fs": patch +--- + +Fixed an issue that caused the plugin to ignore the `requireLiteralLeadingDot` config. diff --git a/plugins/fs/src/commands.rs b/plugins/fs/src/commands.rs index 1cb4c910ed..81b9b8e724 100644 --- a/plugins/fs/src/commands.rs +++ b/plugins/fs/src/commands.rs @@ -854,7 +854,7 @@ pub fn resolve_path( .chain(global_scope.denies().iter().map(|e| e.path.clone())) .chain(command_scope.denies().iter().map(|e| e.path.clone())) .collect(), - require_literal_leading_dot: None, + require_literal_leading_dot: app.fs_scope().require_literal_leading_dot, }, )?; diff --git a/plugins/fs/src/config.rs b/plugins/fs/src/config.rs index d8a197140a..db3bae45e5 100644 --- a/plugins/fs/src/config.rs +++ b/plugins/fs/src/config.rs @@ -5,6 +5,7 @@ use serde::Deserialize; #[derive(Deserialize)] +#[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct Config { /// Whether or not paths that contain components that start with a `.` /// will require that `.` appears literally in the pattern; `*`, `?`, `**`,