diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index a61e38706e5..9f022d6add1 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -1102,7 +1102,7 @@ impl Config { if !self.data.checkOnSave_enable { return None; } - let invocation_strategy = match self.data.cargo_buildScripts_invocationStrategy { + let invocation_strategy = match self.data.checkOnSave_invocationStrategy { InvocationStrategy::OnceInRoot => flycheck::InvocationStrategy::OnceInRoot, InvocationStrategy::PerWorkspaceWithManifestPath => { flycheck::InvocationStrategy::PerWorkspaceWithManifestPath