Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Weird ordering in the autocompletion dropdown #5

Open
j4cobgarby opened this issue Nov 26, 2017 · 5 comments
Open

Weird ordering in the autocompletion dropdown #5

j4cobgarby opened this issue Nov 26, 2017 · 5 comments

Comments

@j4cobgarby
Copy link

Here's a screenshot of what I mean:

screenshot from 2017-11-26 15-04-30

I don't know if this a problem just with me, but even though the plugin seems to know which option in the dropdown is most likely for me to want (since it's coloured bright white,) it's not at the top of the list.

This isn't so much of a problem in this case, but often the variable I'm looking for is too far down the list to see.

That's mainly a problem when using a library which declares some constants, whose names are hard to remember.

@thomasjo
Copy link
Owner

Yeah, this is currently a major limitation in Clangd, which returns completion items in a somewhat random order. I had hoped the recent addition of automatic sorting in atom-languageclient would resolve this problem, but turns out it doesn't. We'll most likely have to introduce some further additions to atom-languageclient to fully resolve this.

@j4cobgarby
Copy link
Author

Is this issue being worked on?

@thomasjo
Copy link
Owner

@j4cobgarby Yes, but it requires fairly significant effort unless resolved upstream. Unfortunately I've been too busy to continue the work I started on in December. One upstream issue has been resolved that should make it easier on this end.

@davydden
Copy link

this is currently a major limitation in Clangd

should not this be reported upstream?

@Cannedfood
Copy link

Cannedfood commented Nov 18, 2018

I think this has been fixed upstream. The order I get makes sense. (clangd version 7.0.0)
[edit]: Apart from autocompletion taking priority over makros

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants