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
[structure view] show catalog definition location when hovering over a stereotype node #1642
When hovering over a stereotype node in the structure tree, a hover should show up, displaying the location where the stereotype was defined (the URL of the catalog JSON file where this stereotype is defined)
Changed this from clicking on the node label to a separate inline action that appears on stereotype nodes, which then can be used to navigate to the referenced catalog file.
@martinlippert do we have a project with stereotype JSON files in JAR dependencies to try? I think it'd work now for the default JSON files kept inside spring boot ls, will work for json files inside the workspace somewhere but may not work for JSON on the projects's classpath JARs... at least I'm not completely convinced they'd work...
Actually, JDT URIs only work for classes and none of the other resources :-
We'd have to either implement support for JAR file entries from our extension or add support for getting content of JAR file entries in JDT LS, i.e. widen support for JDT URIs to include non-class files
Yep... I have restbucks. I've tried it and can confirm that only .class files from JARs can be opened in VSCode via java.file.open... The stereotype json files live in jmolecules-spring JAR for that project... Those json files don't open :-\
Activity
GH-1642: prepare hover festure for stereotype origin in structure view
GH-1642: moved stereotype definition locoation to inline action in th…
martinlippert commentedon Sep 25, 2025
Changed this from clicking on the node label to a separate inline action that appears on stereotype nodes, which then can be used to navigate to the referenced catalog file.
martinlippert commentedon Sep 25, 2025
Navigating to catalog files from inside JAR files doesn't yet work properly, so re-opening this again.
BoykoAlex commentedon Oct 2, 2025
@martinlippert do we have a project with stereotype JSON files in JAR dependencies to try? I think it'd work now for the default JSON files kept inside spring boot ls, will work for json files inside the workspace somewhere but may not work for JSON on the projects's classpath JARs... at least I'm not completely convinced they'd work...
BoykoAlex commentedon Oct 3, 2025
Actually, JDT URIs only work for classes and none of the other resources :-
We'd have to either implement support for JAR file entries from our extension or add support for getting content of JAR file entries in JDT LS, i.e. widen support for JDT URIs to include non-class files
martinlippert commentedon Oct 3, 2025
https://github.com/odrotbohm/spring-restbucks
This one is especially interesting to test since it uses Spring Modulith and therefore renders the tree in a slightly more specialized version.
You could also add one of the JMolecules integration models to your project dependencies:
This lib (for example) already contains a
jmolecules-stereotypes.jsoncatalog file.BoykoAlex commentedon Oct 3, 2025
Yep... I have restbucks. I've tried it and can confirm that only .class files from JARs can be opened in VSCode via
java.file.open... The stereotype json files live injmolecules-springJAR for that project... Those json files don't open :-\