mathworks / MATLAB-language-server

MIT License
81 stars 10 forks source link

Support variable renaming #18

Closed GuillaumeTaffin closed 1 month ago

GuillaumeTaffin commented 1 year ago

I think variable renaming variables is part of the LSP.

My need comes that - in the vscode extension - I failed to rename a local variable and all its references in a m-file.

I am kinda aware that the bigger the scope of the renaming, the harder is the resolution - in case of name duplication that have to be resolved from context. So only supporting renaming in smaller scopes - ie function or file - should already be quite useful as a first step !

Thank you for all the efforts put in this tooling!

dklilley commented 1 year ago

Thanks for raising this suggestion! This is something we would like to add in a future release.

dklilley commented 1 month ago

Symbol rename support has been added in v1.2.5.