x/tools/gopls: duplicates multi-line comment on first function after imports on every save #43000
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.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
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?
Create a new Go source file and add a function to the file.
Add a comment to that function which spawns multiple lines.
Next save the document.
What did you expect to see?
The document should be saved the same way as it was written.
What did you see instead?
The lines below the first line of the comment of the method is duplicated.
When saving again, there's a duplication again:
Related issues.
#39147
Additional information:
When the first method in the Go source file is a method that does NOT contain a comment or that does contain a comment which does NOT span multiple lines, other methods in this file containing comments which spans multiple lines are NOT duplicated.
The text was updated successfully, but these errors were encountered: