mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
Merge pull request #18399 from Veykril/veykril/push-nnsoxqrwqkmv
Fix diagnostic enable config being ignored
This commit is contained in:
commit
3c75b4a017
@ -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 New Issue
Block a user