basedpyright
basedpyright copied to clipboard
Sort suggested imports by exact matches
On code action for import suggestions the LSP returns results in an un-sorted fashion. If there are a lot of similar imports/modules usually the right import is on the nth place in the list:
https://github.com/user-attachments/assets/9ba90fd5-c156-4f4a-bb6b-cb7ae5a42f7a
(tested with helix editor)
Is it possible to prioritize exact matches to the top of the list?
Thanks for all your work!