x/tools/gopls: organizeImports adds package line when fixing code on line after existing package line #38815
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
Please answer these questions before submitting your issue. Thanks!
What did you do?
Had code like:
Then saved in VS Code, which does formatting and fixes.
What did you expect to see?
What did you see instead?
If there's an empty line after the package line, things work fine.
LSP logs: https://gist.github.com/zikaeroh/3618c7cf2a982ade74dc83a89de5da5c
Build info
Go info
The text was updated successfully, but these errors were encountered: