eclipse-langium / langium

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

Add type hierarchy provider as Language Server capability #1278

Closed lars-reimann closed 10 months ago

lars-reimann commented 11 months ago

Closes #1275

Test instructions:

Some automated tests are included. To check functionality in VS Code, create a Langium grammar with the following content:

interface A {}
interface B extends A {}

Place the cursor on the name of either interface and invoke the action "Types: Show Type Hierarchy". Via the button image you can switch between showing subtypes and supertypes of the selected interface.

lars-reimann commented 11 months ago

Thanks for the feedback. I've adjusted the PR accordingly.