x/tools/gopls: organizeImports adds package line when fixing code on line after existing package line #38815
Milestone
Comments
Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here. |
This doesn't reproduce, probably fixed in https://golang.org/cl/233117. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: