LanguageServer.jl
LanguageServer.jl copied to clipboard
renamed keyword arguments not updated everywhere
Take this example:
foo(;old) = old
old = 16
foo(;old=old)
foo(;old)
- Renaming the
oldinfoo(;old) = oldtoNEWgives
foo(;NEW) = NEW
old = 16
foo(;old=old) # incorrect
foo(;old) # incorrect
- Renaming the
oldinold = 16toNEWgives
foo(;old) = old
NEW = 16
foo(;old=NEW)
foo(;NEW) # incorrect
- Renaming the first
oldinfoo(;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.