x/tools/gopls: edits from "extract variable" isn't ordered #47486
Labels
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
)?What did you do?
With the following
main.go
and the char1
selected I called "Extract variable":What did you expect to see?
I expected to see the edits returned in order, so that they can be applied in reverse to maintain the offset (just like
gopls
does itself)What did you see instead?
The ApplyEdit I receive when executing the command provides edits that isn't ordered:
When a client receives the edits out of order it introduce unnecessary ambiguity.
The text was updated successfully, but these errors were encountered: