Skip to content

Completion suggestions contain prefixes of identifiers #2271

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

Closed
pepeiborra opened this issue Oct 10, 2021 · 0 comments · Fixed by #2354
Closed

Completion suggestions contain prefixes of identifiers #2271

pepeiborra opened this issue Oct 10, 2021 · 0 comments · Fixed by #2354
Assignees
Labels

Comments

@pepeiborra
Copy link
Collaborator

pepeiborra commented Oct 10, 2021

In 1.4.0 we introduced completions for all the identifiers defined in the project. The database of possible identifiers is refreshed on every kick, as you type. This means new entries being added literally as you type, even if you hadn't finished typing yet :)

In the screenshot below, GarbageCollectDirtyKeys is a new constructor I have just defined a minute ago. I get completions for several prefixes of it. Ideally I only want to get only one completion for the full identifier:

image

How to prevent this? When refreshing the database of identifiers for a module M, wipe out all the previous entries of M in the database. This might require additional indexes.

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 a pull request may close this issue.

2 participants