mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
Fix diagnostic enable config being ignored
This commit is contained in:
parent
16785c8e13
commit
7d0196c35f
1 changed files with 3 additions and 1 deletions
|
@ -203,10 +203,12 @@ pub(crate) fn fetch_native_diagnostics(
|
|||
NativeDiagnosticsFetchKind::Syntax => {
|
||||
snapshot.analysis.syntax_diagnostics(config, file_id).ok()?
|
||||
}
|
||||
NativeDiagnosticsFetchKind::Semantic => snapshot
|
||||
|
||||
NativeDiagnosticsFetchKind::Semantic if config.enabled => snapshot
|
||||
.analysis
|
||||
.semantic_diagnostics(config, ide::AssistResolveStrategy::None, file_id)
|
||||
.ok()?,
|
||||
NativeDiagnosticsFetchKind::Semantic => return None,
|
||||
};
|
||||
let diagnostics = diagnostics
|
||||
.into_iter()
|
||||
|
|
Loading…
Reference in a new issue