We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can split these up into separate issues if necessary, but they seem related so I'll start by posting them together.
Example code:
object main { def myMethod( s1: String, s2: String, s3: String, s4: String, ) = s1 ++ s2 ++ s3 ++ s4 val word1 = "hello" val word2 = "world" myMethod( word1, word2, s3 = word1, s4 = word2, ) }
To reproduce:
val wo<CURSOR>rd1 = "hello"
aaaaaa
Actual result:
val aaaaaa = "hello" val word2 = "world" myMethod( word1, word2, s3 = word1, s4 = word2, )
Expected:
val aaaaaa = "hello" val word2 = "world" myMethod( aaaaaa, word2, s3 = aaaaaa, s4 = word2, )
word1
myMethod
s4 = wo<CURSOR>rd2,
word2,
Expected behavior: the comma isn't shown as part of the old name. Renaming in that position works (both the definition and the call-site).
Relevant LSP trace:
[Trace - 04:40:27 PM] Sending response 'textDocument/prepareRename - (22)'. Processing request took 1054ms Result: { "start": { "line": 15, "character": 9 }, "end": { "line": 15, "character": 15 } }
Described above in each case.
macOS
VS Code
v1.3.5
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I can split these up into separate issues if necessary, but they seem related so I'll start by posting them together.
Example code:
Issue 1: renaming a val at its definition site doesn't get reflected in function parameters.
To reproduce:
val wo<CURSOR>rd1 = "hello"
aaaaaa
Actual result:
Expected:
Issue 2: Same as above, but try renaming in the middle of the
word1
occurrences in the call tomyMethod
.Issue 3: renaming a final parameter with a trailing comma thinks the comma is part of the name (and doesn't update anything)
To reproduce:
s4 = wo<CURSOR>rd2,
word2,
as the "old" nameExpected behavior: the comma isn't shown as part of the old name. Renaming in that position works (both the definition and the call-site).
Relevant LSP trace:
Expected behavior
Described above in each case.
Operating system
macOS
Editor/Extension
VS Code
Version of Metals
v1.3.5
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered: