Skip to content
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

✨ Support a solution-specific analysis scope set through Solution Explorer #52789

Merged
merged 10 commits into from
Aug 17, 2021

Conversation

sharwell
Copy link
Member

@sharwell sharwell commented Apr 21, 2021

image

Closes #52768

Comment on lines 166 to 167
if (SolutionCrawlerOptions.GetBackgroundAnalysisScope(document.Project) == BackgroundAnalysisScope.ActiveFile &&
_documentTrackingService?.TryGetActiveDocument() != document.Id)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this "extra" early return. We still return early from the scheduled task, but the code is cleaner.

@sharwell sharwell changed the title Support a solution-specific analysis scope set through Solution Explorer ✨ Support a solution-specific analysis scope set through Solution Explorer Jun 19, 2021
@sharwell sharwell marked this pull request as ready for review August 13, 2021 21:50
@sharwell sharwell requested a review from a team as a code owner August 13, 2021 21:50
Only analyzers that use SolutionCrawlerOptions internally need to
reanalyze when these options change. The tests are now updated to
reflect this change.
@sharwell sharwell merged commit d773edf into dotnet:main Aug 17, 2021
@ghost ghost added this to the Next milestone Aug 17, 2021
@sharwell sharwell deleted the analysis-scope branch August 17, 2021 23:22
dibarbet added a commit to dibarbet/roslyn that referenced this pull request Aug 23, 2021
dibarbet added a commit to dibarbet/roslyn that referenced this pull request Aug 26, 2021
dibarbet added a commit that referenced this pull request Aug 26, 2021
This reverts commit d773edf, reversing
changes made to 8ec61b8.
dibarbet added a commit to dibarbet/roslyn that referenced this pull request Aug 27, 2021
@dibarbet dibarbet modified the milestones: Next, 17.0.P4 Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support analysis scope configuration from Solution Explorer
4 participants