eclipse-langium / langium

Next-gen language engineering / DSL framework
https://langium.org/
MIT License
725 stars 65 forks source link

Type hierarchy provider #1275

Closed lars-reimann closed 10 months ago

lars-reimann commented 11 months ago

LSP 3.17 added a way to get the subtypes/supertypes of an entity, based on three requests:

It would be nice to be able to easily hook into this, similar to the CallHierarchyProvider.

I'm currently working on this for a Langium-based DSL:

The interface is basically a copy of the CallHierarchyProvider. If you'd accept such a PR, I'd like to move the interface, the no-op implementation, and the request handler up into Langium.

msujew commented 11 months ago

Sure, that sounds pretty good. We'd love a contribution in that direction 👍