basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

Sort suggested imports by exact matches

Open stevanmilic opened this issue 6 months ago • 0 comments

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!

stevanmilic avatar Aug 16 '24 09:08 stevanmilic