Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/gopls: support setting imports LocalPrefix #33667
Please answer these questions before submitting your issue. Thanks!
What did you do?
With vscode it is possible to set formatTool flags which for goimports allows configuring "-local" which sets LocalPrefix in the imports.ProcessEnv struct passed in to the Options when fixing imports.
It is not possible to configure the imports behaviour when using gopls
What did you expect to see?
Local imports sorted outside of standard library ones
What did you see instead?
Local imports mixed with standard library