Skip to content

[CodeCompletion] Dedupe completion results if multiple lookups were made #34448

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

Merged
merged 1 commit into from
Oct 27, 2020

Conversation

nathawes
Copy link
Contributor

@nathawes nathawes commented Oct 26, 2020

Solver-based member completion performs a lookup per solution, but if the base types in each solution are variations of the same generic (e.g. Array<Int>, Array<String>), we can end up with the same result appearing twice (e.g. count)

@nathawes nathawes requested a review from rintaro October 26, 2020 22:37
@nathawes
Copy link
Contributor Author

@swift-ci please test

…ade.

Solver-based member completion performs a lookup per solution, but if the base
types in each solution are variations of the same generic (e.g. Array<Int>,
Array<String>), we can end up with the same result appearing twice (e.g. count)
@nathawes nathawes force-pushed the completion-dedupe-ambiguous branch from 1869734 to 62a5fb1 Compare October 26, 2020 22:41
@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 18697348d42741ba7f49e6da0f97be07836f0616

@nathawes
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@rintaro rintaro left a comment

Choose a reason for hiding this comment

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

LGTM!

@nathawes nathawes merged commit a07dda6 into swiftlang:main Oct 27, 2020
@nathawes nathawes deleted the completion-dedupe-ambiguous branch October 27, 2020 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants