diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index aa2b660b279f..54cb89442dfc 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -1069,7 +1069,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