You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
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):
Additional context
workspace-restart between renames fixes it
The text was updated successfully, but these errors were encountered: