x/tools/gopls: OrganizeImports truncates file with line directives #59124
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
with gopls at tip, here are before and after OrganizeImports
"//line foo.y:103\npackage main\n\nimport "fmt"\n\n// this comment is necessary for failure\nfunc a() { fmt.Println()}\n"
"//line foo.y:103\npackage main\n\nimport "fmt"\n\n// this comment is necessary for failure\n"
The text was updated successfully, but these errors were encountered: