You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of https://golang.org/cl/25140, goimports -srcdir=.... will accept a full filename of the file being edited, instead of just its directory. (But directory will still work as it does today)
You'll probably want to update vim-go to pass the full name, which will enable some new features in goimports. (analyzing other files in your package's directory for better recommendations, and being aware of global variables)
The text was updated successfully, but these errors were encountered:
Thanks @bradfitz for the feedback 👍 Agree that it's a terrible name as well :) Btw, we also write to a temp file first (to catch errors and not lose undo history) and then rename the tempfile to the actual one.
With the patch #957, the final command will be something like:
As discussed in dominikh/go-mode.el#146 for emacs,
As of https://golang.org/cl/25140,
goimports -srcdir=....
will accept a full filename of the file being edited, instead of just its directory. (But directory will still work as it does today)You'll probably want to update vim-go to pass the full name, which will enable some new features in goimports. (analyzing other files in your package's directory for better recommendations, and being aware of global variables)
The text was updated successfully, but these errors were encountered: