Skip to content

Use declaration URIs for call and type hierarchy items - #2280

Merged
msujew merged 1 commit into
eclipse-langium:mainfrom
shblue21:fix/hierarchy-declaration-document
Nov 19, 2026
Merged

msujew merged 1 commit into
eclipse-langium:mainfrom
shblue21:fix/hierarchy-declaration-document

Conversation

@shblue21

@shblue21 shblue21 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

If you open the type hierarchy from a reference in another file, the list of supertypes can be empty. Opening it from the declaration shows the parent as expected.

The hierarchy item had the declaration’s range but the reference file’s URI, so Langium looked up the range in the wrong file. The call hierarchy provider had the same bug. Both now use the declaration’s URI.

type-issue.png

@msujew msujew left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, what an oversight. Thanks!

@msujew
msujew merged commit 3a167ec into eclipse-langium:main Nov 19, 2026
4 checks passed
@shblue21

Copy link
Copy Markdown
Contributor Author

Thanks for merging this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants