-
Notifications
You must be signed in to change notification settings - Fork 821
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
A way to request documentation from LSP server #291
Comments
public interface MathOperation {
/**
* Returns the result of adding the two integers together.
* @param x the first value
* @param y the second value
* @return the sum of the two integers
*/
public int add(int x, int y);
} @bstaletic So you mean if your mouse hovered over the string |
@rcjsuen Thanks for taking the time to respond. Yes, the tooltip with a parsed javadoc in a readable format is what I'm looking for. |
@bstaletic It sounds like the language server just needs to support a Or did you have something else in mind? |
So Now I'd like to ask a slightly different question. What's the best way to get just the type of the variable from the server? I initially used hover to request for getting the type. Is there a way to easily get two distinct respinses (type and doc)? Or will I have to parse the response I get from hover response? |
@bstaletic Uh, that's really up to the language server. The language server the client is connected to may or may not parse the comments defined above a function/method/member/whatever. The client just sends a You could perhaps use |
Okay, thanks again for taking the time to respond and help me I'll close tge issue now, as there really is no issue here. |
Is there a way to send a request that would return doxygen/pydoc/java doc parsed documentatioin?
Libclang (C-family), jedi (python), racer (rust), tern (javascript) and probably others already provide ways to parse comments and return formated documentation (if available). Would be great if LSP supported this as well.
The text was updated successfully, but these errors were encountered: