x/tools/gopls: formatting adds terminal newlines #35312
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?
With the following input:
and calling
Formatting
.What did you expect to see?
Edits that result in:
consistent with the results from
gofmt
What did you see instead?
Edits that result in:
This is because the following response was received:
i.e. the start position is wrong. It should be:
protocol.Position{Line:4, Character:1}
cc @stamblerre @ianthehat
The text was updated successfully, but these errors were encountered: