-
Notifications
You must be signed in to change notification settings - Fork 28
Javadoc #76
Comments
Hello. It's perfectly fine to implement. Parts of the relevant classes needed are used already also, so I have a good idea of how it would be done. The main places that LSP can request documentation information are textDocument/signatureHelp and textDocument/completion. In the case of completion, it is possible to use the completionItem/resolve request (which is implemented in CompletionItemResolveCommand) to calculate additional information for a single selected completion item, including documentation. The primary place for Javadoc generation seems to be JavaDocInfoGenerator. A modified version of this class is used to generate the signature on hover information, OneLineJavaDocInfoGenerator. Another class handles finding documentation for the element at point, in HoverDocumentationProvider, modified from IntelliJ's JavaDocumentationProvider. Basically, I think the process for adding the Javadoc information would be to take advantage of these classes using The documentation string might need modification to remove IntelliJ's XML markup, however. This could be accomplished by duplicating the class, or stripping the markup like in HoverDocumentationProviderKt. Also, the I hope this helps. |
Thank you! That's extremely helpful and enough to keep me busy. |
Hello, I'm interested in adding a feature to show javadoc.
The text was updated successfully, but these errors were encountered: