This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Add goimports functionality to the DocumentFormatting #272
Comments
I'm happy with changing our default to using goimports. If someone prefers plain old go fmt then we can provide an option later. Can you send a PR? |
#83 is probably also needed to get this working, right? |
Interesting @lloiser. I guess that answers the issue I posted here: So yes, the above "works", but as explained in the above issue, it's not very user friendly (but the current |
I think having goimports functionality is very useful. Since #83 is merged and you have the working patch, @JeanMertz would you please create the PR? |
It would be very nice if it was possible to also configure the LocalPrefix if this is implemented. |
keegancsmith
pushed a commit
that referenced
this issue
Jul 25, 2018
Original code by @JeanMertz, some tweaks by me. Fixes #272
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Not sure if this is something you'd consider, but it would be nice if it was possible to auto add missing imports.
I use this diff locally, which seems to do the trick, but I haven't tested this thoroughly yet:
The text was updated successfully, but these errors were encountered: