LanguageServer.jl icon indicating copy to clipboard operation
LanguageServer.jl copied to clipboard

renamed keyword arguments not updated everywhere

Open nick4f42 opened this issue 3 years ago • 0 comments

Take this example:

foo(;old) = old

old = 16

foo(;old=old)
foo(;old)
  1. Renaming the old in foo(;old) = old to NEW gives
foo(;NEW) = NEW

old = 16

foo(;old=old)  # incorrect
foo(;old)  # incorrect
  1. Renaming the old in old = 16 to NEW gives
foo(;old) = old

NEW = 16

foo(;old=NEW)
foo(;NEW)  # incorrect
  1. Renaming the first old in foo(;old=old) gives
foo(;old) = old  # incorrect

old = 16

foo(;NEW=old)
foo(;old)  # incorrect

Additionally, I'm not able to select the first y for renaming the following example:

f(x; y) = y

Putting my cursor over the first y and prompting to rename actually prompts me to rename x. Putting my cursor over the second y works though.

nick4f42 avatar Feb 26 '22 23:02 nick4f42