Skip to content

Conversation

@0101
Copy link
Contributor

@0101 0101 commented Aug 1, 2023

Fixes #15191

The problem is that if a project has multiple target frameworks (such as <TargetFrameworks>net472;net7.0</TargetFrameworks>) it creates multiple projects in Roslyn's Solution which all contain the document in which our symbol is defined.

We now report all definition locations, this PR adds a distinctBy (Document.FilePath, Project.FilePath) for the definitions. We still report all references even if they're duplicate (even though they don't have to be if there are #ifdefs) but VS handles it correctly when we assign them to the same definition item.

Not sure how to write tests for it 🫤

image

@0101 0101 requested a review from a team as a code owner August 1, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Duplicated Find All References results

3 participants