We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 981ea19 + 39881f5 commit 3c75b4aCopy full SHA for 3c75b4a
src/tools/rust-analyzer/crates/rust-analyzer/src/diagnostics.rs
@@ -203,10 +203,12 @@ pub(crate) fn fetch_native_diagnostics(
203
NativeDiagnosticsFetchKind::Syntax => {
204
snapshot.analysis.syntax_diagnostics(config, file_id).ok()?
205
}
206
- NativeDiagnosticsFetchKind::Semantic => snapshot
+
207
+ NativeDiagnosticsFetchKind::Semantic if config.enabled => snapshot
208
.analysis
209
.semantic_diagnostics(config, ide::AssistResolveStrategy::None, file_id)
210
.ok()?,
211
+ NativeDiagnosticsFetchKind::Semantic => return None,
212
};
213
let diagnostics = diagnostics
214
.into_iter()
0 commit comments