Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/imports: return only import changes #31493

Closed
stamblerre opened this issue Apr 16, 2019 · 1 comment

Comments

@stamblerre
Copy link
Contributor

commented Apr 16, 2019

imports.Process returns the entire updated file contents, but it would also be helpful if it could return the diff specifically between old and new import blocks. The context for this is gopls, which has a distinction between formatting and organizing imports.

@gopherbot gopherbot added this to the Unreleased milestone Apr 16, 2019

@stamblerre

This comment has been minimized.

Copy link
Contributor Author

commented Aug 28, 2019

Duplicate of #30843

@stamblerre stamblerre marked this as a duplicate of #30843 Aug 28, 2019

@stamblerre stamblerre closed this Aug 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.