x/tools/gopls: version created by didChange ignored? #35584
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
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?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
govim
has a test that verifies suggested fixes. The following file is opened in Vim:Because of a slight vagary of the test setup, the following sequence of events occurs with exactly the file contents above:
didOpen
with version 1didChange
with version 2didChange
with version 3At this point therefore the current version of
main.go
is 3.Then we trigger the code action:
This gives us the following response:
Notice however the version of the document change for
main.go
is version 1, not version 3.What did you expect to see?
Version 3 in the document changes for
main.go
What did you see instead?
Version 1.
Possibly related to #35114
gopls
log file: fail.logcc @stamblerre @ianthehat
The text was updated successfully, but these errors were encountered: