Skip to content

Improve far multi-targetting grouping for one more case.#53281

Merged
CyrusNajmabadi merged 1 commit intodotnet:mainfrom
CyrusNajmabadi:farGrouping
May 10, 2021
Merged

Improve far multi-targetting grouping for one more case.#53281
CyrusNajmabadi merged 1 commit intodotnet:mainfrom
CyrusNajmabadi:farGrouping

Conversation

@CyrusNajmabadi
Copy link
Contributor

The previous work to improve multi-targetting didn't properly merge all information in all situations. This could lead to the UI showing:

image

I had alreayd fixed the lower level merging code, so thsi extract check i added in one location undid it. Removing the check gives the desirable result of:

image

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner May 8, 2021 19:57
@ghost ghost added the Area-IDE label May 8, 2021
// they are linked into.
if (!seenLocations.Add((declarationLocation.Document.FilePath, declarationLocation.SourceSpan)))
continue;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thie code was literally not necessary. TryCreateDocumentSpanEntryAsync already contains the merging code that checks if the declarationLocation is a dupe, and if so, 'combines all the flavors' to make a suitable 'project bucket' for it to belong to.

Copy link
Member

@davidwengier davidwengier left a comment

Choose a reason for hiding this comment

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

Note to self: Put in small bits of low hanging fruit so I can follow up later and feel productive 😛

@CyrusNajmabadi CyrusNajmabadi merged commit 300b615 into dotnet:main May 10, 2021
@CyrusNajmabadi CyrusNajmabadi deleted the farGrouping branch May 10, 2021 01:23
@ghost ghost added this to the Next milestone May 10, 2021
@RikkiGibson RikkiGibson modified the milestones: Next, 17.0.P2 Jun 29, 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.

3 participants