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

Hook up file watchers for analyzer references #74858

Merged
merged 5 commits into from
Aug 22, 2024

Conversation

CyrusNajmabadi
Copy link
Member

Continuation of #74745. This ensures the initial hookup happens to cause us to listen to file changes for analyzer references on disk.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner August 22, 2024 16:44
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 22, 2024
projectUpdateState = projectUpdateState.WithIncrementalAnalyzerReferencesRemoved(_analyzersRemovedInBatch);

foreach (var analyzerReference in _analyzersRemovedInBatch)
solutionChanges.UpdateSolutionForProjectAction(Id, solutionChanges.Solution.RemoveAnalyzerReference(Id, analyzerReference));
Copy link
Member Author

Choose a reason for hiding this comment

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

doesn't look exactly the same as below as we don't hav ea Solution.RemoveAnalyzerReferences (plural) to go with Solution.AddAnalyzerReferences. And i'm not interested in adding that at this point :)

Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

@CyrusNajmabadi
Copy link
Member Author

@ToddGrun can you please takea nother look. @jasonmalinowski as well.

}

foreach (var mappedFullPath in mappedPaths)
if (_activeBatchScopes > 0)
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 missed from this point downwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants