x/tools/gopls: inconsistent placement of new import with local #35519
Comments
|
Change https://golang.org/cl/206881 mentions this issue: |
Er...I just realized I didn't actually test this exact case. But I'm pretty sure it's fixed. If not please comment. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Consider a module
bug
with packagebug/bar
that exports identifierX
.gopls
is configured to have the local option equal to"bug/"
. In the packagebug
, we have the sourceIssuing an Organize Imports action respects the local option and leaves the import block as
whereas if the import for
"bug/bar"
is added through code complection, the import block will bewhich does not respect the local option.
The text was updated successfully, but these errors were encountered: