smithy-lang / smithy-language-server

A Language Server Protocol implementation for the Smithy IDL
https://smithy.io
Apache License 2.0
33 stars 18 forks source link

Add the ability to rename shapes #106

Open kubukoz opened 1 year ago

kubukoz commented 1 year ago

Like in the title - the rename ability would be a great addition to the LSP.

My understanding is that a rename of shapes (not namespaces) would be relatively straightforward if we had some sort of "reference map", with locations or preferably ranges. The rename would change the shape name in both the definition and all the usages.

These are some of the edge cases we would have to capture:

If you know of any other cases, let me know please! I may start some work on this in the upcoming weeks, but I'll report back first.