-
Notifications
You must be signed in to change notification settings - Fork 410
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
Implement labelDetails for CompletionItem #2556
Implement labelDetails for CompletionItem #2556
Conversation
There's no telling how other clients may implements this, but here's what it looks like in VS Code. Some details do seem a bit redundant. For example, I don't think we need to mention the method signature twice. Maybe we need to hide certain things when we know |
51a7022
to
9bc06eb
Compare
Maybe the label detail description (the element on the far right of the list) should incldue the fully qualified name ? Also, I notice |
9bc06eb
to
0508204
Compare
We received some user feedbacks that hope to show the return type of the method at right (That's also the way that IDEA displays the completion list) The return type will disappear if the item has a long display content in our current implementation. And the situation may become worse if we display declaring type as detail. |
0508204
to
a2d9015
Compare
This looks pretty good! One more case is about the snippets. We can put descriptions of the snippet as detail maybe. IDEA example: There is a list for postfix which might be helpful: #2288 (comment) |
a2d9015
to
2afa83f
Compare
Looks good! IJ shows description for general snippets and evaluated content for postfixes. I think using descriptions are fine for now and we can change it if users ask. |
2afa83f
to
96ecbe0
Compare
...rc/org/eclipse/jdt/ls/core/internal/contentassist/CompletionProposalDescriptionProvider.java
Outdated
Show resolved
Hide resolved
Another feedback about UX. Currently the constructors will show the return type as I'm thinking that, since the constructors in Java are always |
96ecbe0
to
96b220e
Compare
Change looks pretty good from trying it out. The only thing we are losing is the ability to know the declaring class of a given method declaration, and only when it is selected : I think this is pretty minor though. I also noticed that the |
Signed-off-by: Jessica He <[email protected]>
96b220e
to
12fbc7d
Compare
Fixes #2476