x/tools/gopls: panic in textDocument.rename #39614
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
n/a
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Tried to rename var
foo
in the following example.Note the missing
)
aftermake
that results in a compilation error.request:
What did you expect to see?
No panic, other than that I'm not entirely sure. I appreciate the fact that it is possible to rename even if the source doesn't compile. But in an example like this the
if
-casefoo
isn't valid source so that one won't be renamed.What did you see instead?
The text was updated successfully, but these errors were encountered: