Skip to content

[5.7][CodeCompletion] Only include results from other modules once #42534

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Apr 21, 2022

Cherry-pick #42529 to release/5.7


In case of ambigous expression/global completions, we call getValueCompletionsInDeclContext multiple times for the amigous solutions to the constraint system. This can cause modules to be included multiple times in RequestedCachedResults and thus global results from these modules are reported multiple times. Make RequestedCachedResults a set so we don’t get duplicate results.

rdar://92048610

In case of ambigous expression/global completions, we call `getValueCompletionsInDeclContext` multiple times for the amigous solutions to the constraint system. This can cause modules to be included multiple times in `RequestedCachedResults` and thus global results from these modules are reported multiple times. Make `RequestedCachedResults` a set so we don’t get duplicate results.

rdar://92048610
@ahoppen ahoppen requested a review from a team as a code owner April 21, 2022 16:25
@ahoppen
Copy link
Member Author

ahoppen commented Apr 21, 2022

@swift-ci Please test

@ahoppen ahoppen changed the title [CodeCompletion] Only include results from other modules once [5.7][CodeCompletion] Only include results from other modules once Apr 21, 2022
@ahoppen ahoppen added the r5.7 label Apr 21, 2022
@bnbarham bnbarham merged commit 41d720e into swiftlang:release/5.7 Apr 21, 2022
@ahoppen ahoppen deleted the pr-5.7/no-duplicate-results-from-other-modules branch July 20, 2022 13:22
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.7 labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants