x/tools/gopls: reuse named imports from other packages in the current module #44510
Take the following dummy module with two simple Go files:
If I open both Go files with vim+govim+gopls and save, I would expect
Assuming that gopls already collects information about all packages in the current main module, I think it should also be able to pick up named imports from other packages to try to be more helpful when adding imports.
In particular, this came up while writing tests in a new package with
The text was updated successfully, but these errors were encountered: