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

Boost callable completions that are not double underscore/default #195

Merged
merged 5 commits into from
Jun 3, 2023

Conversation

viniciusmuller
Copy link
Contributor

Lowers the priority of double underscore or default functions when completing functions and captures.

Behavior with this patch:
image

Closes #183

@viniciusmuller
Copy link
Contributor Author

Hey @scohen, I've updated the code to use if instead of unless and also updated a test that was failing since now the completions will be boosted by default (maybe we also could boost to a lower level than 5)

Also, do you think it makes sense to add any other functions to the ["module_info"] list? I can also try to write a test for this "unprioritized behavior"

@scohen
Copy link
Collaborator

scohen commented May 31, 2023

@viniciusmuller please write some tests, and I can't think of any functions that I'd de-boost right now other than the dunder ones.

@scohen scohen merged commit 6c4545f into lexical-lsp:main Jun 3, 2023
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.

Lower the priority of some default functions in the module's sorting order
3 participants