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

fix: avoid hint items shadow local item from completions #18517

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CubeSugarCheese
Copy link

Relevant Issues

#18398 Don't auto import items when one is already in scope
#17164 Block specific items from being auto-imported

Fixed Problem

Now completions will not hint item that could shadow local item.

Problems that May Arise

Unexpected behavior

Maybe we can auto rename or use long path to disambiguation, and add a option to control the behavior.

Performance

This code use simple liner exhaustive search, maybe cause large performance problem in a big search space.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants