-
Notifications
You must be signed in to change notification settings - Fork 414
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
When viewing hover Javadoc, {@link ...
that points to a binary class doesn't display as a link
#2810
Comments
The vscode-java/src/providerDispatcher.ts Lines 29 to 30 in ccb75b1
java/classFileContents on the server side to resolve the content.
Was this not working even when lsp4mp was using Update : I would first confirm whether we have any other issues filed for this (in vscode-java, or JDT-LS), and if not maybe look at whether Update 2 : If on the server-side the type is just a fully qualified String name, maybe something like :
|
We might not be able to fix this. It looks like VS Code used to be support opening URIs with any scheme at one point, and a few extensions relied on this, but it was patched out: Then a feature request was opened to provide the old functionality as a feature, but it didn't receive enough votes and was auto closed: edit: misread the code, looks like the |
Translate all links to `jdt://` in hover documentation to a `command://` link that opens the corresponding document. This gets around a limitation of hover Markdown in VS Code, where custom schemes aren't supported in links. Closes redhat-developer#2810 Signed-off-by: David Thompson <davthomp@redhat.com>
Translate all links to `jdt://` in hover documentation to a `command://` link that opens the corresponding document. This gets around a limitation of hover Markdown in VS Code, where custom schemes aren't supported in links. Closes redhat-developer#2810 Signed-off-by: David Thompson <davthomp@redhat.com>
Translate all links to `jdt://` in hover documentation to a `command://` link that opens the corresponding document. This gets around a limitation of hover Markdown in VS Code, where custom schemes aren't supported in links. Closes redhat-developer#2810 Signed-off-by: David Thompson <davthomp@redhat.com>
Translate all links to `jdt://` in hover documentation to a `command://` link that opens the corresponding document. This gets around a limitation of hover Markdown in VS Code, where custom schemes aren't supported in links. Closes redhat-developer#2810 Signed-off-by: David Thompson <davthomp@redhat.com>
Translate all links to `jdt://` in hover documentation to a `command://` link that opens the corresponding document. This gets around a limitation of hover Markdown in VS Code, where custom schemes aren't supported in links. Closes redhat-developer#2810 Signed-off-by: David Thompson <davthomp@redhat.com>
Translate all links to `jdt://` in hover documentation to a `command://` link that opens the corresponding document. This gets around a limitation of hover Markdown in VS Code, where custom schemes aren't supported in links. Closes #2810 Signed-off-by: David Thompson <davthomp@redhat.com>
If you hover over a Java element that has Javadoc (eg. class, method, static/non-static member) that has a
{@link org.example.ClassName}
in it, the{@link
is rendered as a link and is clickable if the class is a source file, but not if it is a binary file. For example, if you put{@link java.lang.String}
in a Javadoc, then the hover documentation doesn't display a clickable link.Environment
Steps To Reproduce
myMethod()
to see the JavadocCurrent Result
The reference to
java.lang.String
is not clickable.Expected Result
The reference to
java.lang.String
is a clickable link that opensjava.lang.String
in read-only mode.Additional Informations
You can see in the extension output under the hover response that it tries to link to
java.lang.String
like this:The text was updated successfully, but these errors were encountered: