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: import statement added before package declaration when preceded by comment #33721
Running gopls version:
What did you do?
Selected a completion of an unimported standard library package.
What did you expect to see?
The import being added after the package statement.
What did you see instead?
The import was added before the package statement.
Test that having a comment at the start of a file allows imports to be added correctly. Updates golang/go#33721 Change-Id: Id1673c2509537413710b73261ad2a59afe06b93f Reviewed-on: https://go-review.googlesource.com/c/tools/+/190800 Run-TryBot: Suzy Mueller <email@example.com> Reviewed-by: Ian Cottrell <firstname.lastname@example.org>