Renaming of function, when done twice, loses track of change
Kaspazza opened this issue · comments
Describe the bug
The problem is that when renaming the same function twice, lsp loses track of its length, making the second rename not applied or applied incorrectly (e.g. mixing name with it's parameters, renaming previous name)
To Reproduce
Steps to reproduce the behavior:
- Go to function-name that is used in other namespaces
- Execute lsp-rename and change name to a longer or shorter
- Save the change - everything looks good but highlighting is lost
- Rename the same function again, to an even shorter (or longer name)
- The name is messed up or the rename was not showing the proper name
Expected behavior
When I rename a function I want the name to be refreshed in all its references.
So if I rename it to a longer name, I want it in another namespace where it's referenced to be able to rename it from there again.
If I rename a function from the definition point, I want to be able to do it twice there.
Screenshots
Video recording of the issue
User details (please complete the following information):
- OS: MacOS aarch binary
- Editor: doom emacs
- Version: 2024.03.17-17.22.15-nightly
Additional context
workspace-restart between renames fixes it
Happens also in 2024.03.13-13.11.00
Happens also in 2024.03.01-11.37.51
Also in 2024.02.01-11.01.59