-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use common helper for diagnostics #77109
Conversation
stateSets.SelectAsArray(s => !s.IsHostAnalyzer, s => s.Analyzer), | ||
stateSets.SelectAsArray(s => s.IsHostAnalyzer, s => s.Analyzer), | ||
crashOnAnalyzerException, | ||
cancellationToken); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just formatting. no other change. (though this makes it clear why it's ok to call into this method from the method below in the PR).
// PERF: get analyzers that are not suppressed and marked as open file only | ||
// this is perf optimization. we cache these result since we know the result. (no diagnostics) | ||
var activeProjectAnalyzers = stateSets.SelectAsArray(s => !s.IsHostAnalyzer, s => s.Analyzer); | ||
var activeHostAnalyzers = stateSets.SelectAsArray(s => s.IsHostAnalyzer, s => s.Analyzer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doing the same filtering that the common helper does.
81ba94c
to
9e30885
Compare
@dibarbet @JoeRobich ptal. |
No description provided.