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/gopls: Add support for workspace/{Will,Did}{Rename,Delete,Create}Files methods #51037

jan-xyz opened this issue Feb 6, 2022 · 0 comments
FeatureRequest gopls Tools


Copy link

@jan-xyz jan-xyz commented Feb 6, 2022

In order to make refactoring and code base cleanups easier and be on-par with IDE's I would wish for more high-level workspace refactoring capabilities and to move files around. The functions in the LSP spec were added with the 3.16 specification and are already available:

From a user perspective I can imagine that this also makes sure that previously private tokens are now exported and that the appropriate packages get imported. I also thought about moving accompanying *_test.go files, but that might be easier if the user just does it themselves.

I am not a VS code user, but from the pull requests in the repo I think it's already supported and Neovim has a tracking issue.

@gopherbot gopherbot added Tools gopls labels Feb 6, 2022
@gopherbot gopherbot added this to the Unreleased milestone Feb 6, 2022
@suzmue suzmue removed this from the Unreleased milestone Feb 7, 2022
@suzmue suzmue added this to the gopls/on-deck milestone Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
FeatureRequest gopls Tools
None yet

No branches or pull requests

3 participants