vscode-java-dependency icon indicating copy to clipboard operation
vscode-java-dependency copied to clipboard

Attach javadoc to manually added referenced libraries

Open Dyoung0606 opened this issue 4 years ago • 4 comments

We can add a referenced library (jar) using the Project Manager or by manually editing .vscode\settings. Please add the ability to attach the library's javadocs as well.

In my use case, I have the jar and its javadocs, but I do not have its source code. I'd love to be able to see the javadocs for this library while editing java code.

Thanks.

Dyoung0606 avatar Jan 11 '21 19:01 Dyoung0606

Currently if the added referenced library is downloaded from Maven central, the tool should be able to download it's javadoc jar and source jar automatiically.

You can first trigger a Go to Definition to a class from your referenced library, and then the download job will automatically schedule. After download finished, you should be able to see the JavaDoc when hovering on the class. (If you cannot see it, try reload the window)

Does this solve your problem?

jdneo avatar Dec 01 '21 05:12 jdneo

Unfortunately, I am not using Maven so this will not help.

Dyoung0606 avatar Dec 01 '21 11:12 Dyoung0606

It's not saying you need to use Maven as your build tool.

Just need that the jar your are using is downloaded from Maven Central. Or in other words, it has some metadata that the extension can be used to find the corresponding source jar and doc jar.

jdneo avatar Dec 02 '21 01:12 jdneo

Ah, thanks for the clarification. But this is still not a viable workaround for my use case. Thanks.

Dyoung0606 avatar Dec 08 '21 12:12 Dyoung0606