You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Resourced in referenced libraries can not display. #1070
When viewing a referenced library that has a resource file, for example a png file, the png does not open because the jdt uri schema provided by redhat only supports java decompilation.
I think the best solution is most likely to check the file extension and, for any .java files, use jdt as normal, but for any other file, assume it is a resource, and use another schema, like jdt+resource, which can correctly handle extracting the file from the jar zip.
changed the title [-]Items in referenced libraries always use the jdt uri scheme, which works for java files, but not any resource files.[/-][+]Resourced in referenced libraries can not display.[/+]on Aug 24, 2026
Hi TimberStalker, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
Suggestions
For non-Java resources (e.g. .png), have the server emit a standard jar:file:/…!/path/to/resource.png URI so clients can open it natively. See:
Continue to use jdt: URIs for .java files when project context (source attachments, Javadoc, classpath scope) is needed. Rely on extension to switch schemes based on file extension.
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!
I tried very hard to find a workaround so i could allow displaying a png without needing to add right click action, but i simply was not able to, and this would be very nice, especially since the current implementation doesent work anyway,
Actually, it might be easier to create an issue on the main redhat java project to change how jdt is handled to support images, as it seems text formats work fine.
Activity
[-]Items in referenced libraries always use the jdt uri scheme, which works for java files, but not any resource files.[/-][+]Resourced in referenced libraries can not display.[/+]github-actions commentedon Aug 24, 2026
Hi TimberStalker, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
Suggestions
For non-Java resources (e.g.
.png), have the server emit a standardjar:file:/…!/path/to/resource.pngURI so clients can open it natively. See:jar:file:/...URIs when possible instead ofjdt:/...ones (issue #2465):Use
jar:file:/...URIs when possible instead ofjdt:/...ones eclipse-jdtls/eclipse.jdt.ls#2465Continue to use
jdt:URIs for.javafiles when project context (source attachments, Javadoc, classpath scope) is needed. Rely on extension to switch schemes based on file extension.jar:alone isn’t enough for Java contexts (issue docs: release 0.26.5 #943):Use standard jar: protocol instead of jdt: for classes eclipse-jdtls/eclipse.jdt.ls#943 (comment)
If you need a quick client-side hack, you could explore URI rewriting settings, though it only applies to file paths, not JAR contents:
Other references with low confidence
workspaceUriPrefixfor remapping URIs:Does JDT-LS support URI rewrite settings eclipse-jdtls/eclipse.jdt.ls#637
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!
TimberStalker commentedon Aug 24, 2026
Wait, i didnt mean to close this
TimberStalker commentedon Aug 24, 2026
I tried very hard to find a workaround so i could allow displaying a png without needing to add right click action, but i simply was not able to, and this would be very nice, especially since the current implementation doesent work anyway,
TimberStalker commentedon Aug 24, 2026
Actually, it might be easier to create an issue on the main redhat java project to change how jdt is handled to support images, as it seems text formats work fine.
TimberStalker commentedon Aug 24, 2026
Turns this is already being fixed. Ill close this because of that.