langium
langium copied to clipboard
Domainmodel example: Renaming with qualified name does not work
Langium version: #275 Package name: langium
Steps To Reproduce
- Open
datatypes.dmodel - Select
Date - Press F2
- Enter a new name
The current behavior
The datatype name is changed in blog.dmodel, but it loses the complex. prefix.
The expected behavior
The new name should include the package name.
@spoenemann
Should supporting renaming of a package e.g. complex also be a part of this issue?
What is also strange, you can exec Rename Symbol for every QName CSTNode part, which doesn't make much sense:

Every such a rename request will end up in rename service with a selected QName part (comlex or . or Date) as newText
Should supporting renaming of a package e.g. complex also be a part of this issue?
Ideally yes (needs special handling to rename all references to contained classes).
What is also strange, you can exec Rename Symbol for every QName CSTNode part, which doesn't make much sense
That seems to be a client side behavior. Don't know what we can do to fix it.
The issue seems to be no longer present. I cannot reproduce with current main state.
?? I can still reproduce following the steps described at the top.
Yes, today I also can (with today's state of main). Not clear why it worked yesterday for me on the main branch. However, I'll update the fix.