-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: move "go.import.add" from vscode-go to gopls #43351
Comments
Change https://golang.org/cl/281412 mentions this issue: |
This was previously discussed, but I'm having a hard time finding the issue at the moment! |
I believe the original issue is #32749. |
Thanks. For some reason I was only searching closed issues! |
This CL adds two new commands that let a client request a list of importable packages relative to a Go file and then select which import a programmer would like to add to said file. Updates golang/go#43351 Change-Id: If12518874a92ed4167bdd711a92e03ee21c7b949 Reviewed-on: https://go-review.googlesource.com/c/tools/+/281412 Trust: Rebecca Stambler <[email protected]> Trust: Robert Findley <[email protected]> Run-TryBot: Rebecca Stambler <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]>
I was about to file a quality issue about the quality of VS Code Go's "go.import.add" (aka "Go: Add Import") was migrated to use Currently There are also #32749 and #48545. |
Now that gopls will be on by default, vscode should delegate its remaining non-lsp functionality to gopls through nonStandardRequest, if said feature makes sense to be moved there.
Starting with the "go.add.imports" command as an example, the "Add Import" action should be a good first migration and it has a number of benefits:
Once this logic is both in vscode and gopls, more custom features can be proposed to be added to gopls such as "listing all interfaces in a workspace" and "picking an interface to implement" without having to wait for a diagnostic error, etc.
If this looks okay to everyone, I have a couple of working branches for both repos I'd be happy to contribute: here and here
Thanks!
The text was updated successfully, but these errors were encountered: