Skip to content

Conversation

@ethan-skye-white
Copy link

@ethan-skye-white ethan-skye-white commented Nov 15, 2025

This is to fix an issue I've encountered: if there are multiple autocomplete suggestions with the same label (for example, the different overloads of the ArrayList constructor if I'm using jdtls), all but one will be hidden. This fix uses a hideous kludge of adding invisible characters to the end of the label to make each suggestion have a unique label. This is only applied on servers with the replace_label property set to true.

I'm creating this pull request so that others may use this fix until there's a better solution. I'm interested if anyone can think of a better solution.

Currently, when I'm using jdtls, if I have multiple overloads of
the same method, only one will show up in the list. This is because the
different overloads will all have the same label. This commit adds
invisible characters to the ends of the labels, to make them unique.
That's a hideous solution, but it does work.
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.

1 participant