-
Notifications
You must be signed in to change notification settings - Fork 417
Completion item javadoc does not have links #731
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
Comments
Given: public class App {
public static void main( String[] args )
{
fo|<completion here>
}
/**
* Hello world!
*
* @see Object
*/
public static void foo() {}
} the server returns:
while hover yields:
|
No idea why Markdown is generated differently (provided the client declares it supports it). One would need to dig into https://github.com/eclipse/eclipse.jdt.ls/blob/master/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/CompletionResolveHandler.java#L138. @JPinkney implemented Markdown link generation, so he might be able to give more precise pointers |
I haven't looked into this but it might be as simple of a fix as changing https://github.com/eclipse/eclipse.jdt.ls/blob/master/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/CompletionResolveHandler.java#L138 to using JavadocContentAccess2.getMarkdownContentReader like hover does |
@JPinkney nice catch, it works |
In Javadoc hovers, jdt.ls includes links for stuff like "@Seealso java.lang.Object". However, in the javadoc delivered in the "additionalInformation" of completion items, no such links are present. I don't really see a reason why not.
The text was updated successfully, but these errors were encountered: