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 go-to-examples and go-to-tests action #43074

Open
icholy opened this issue Dec 8, 2020 · 1 comment
Open

x/tools/gopls: add go-to-examples and go-to-tests action #43074

icholy opened this issue Dec 8, 2020 · 1 comment
Labels
FeatureRequest Issues asking for a new feature that does not need a proposal. gopls Issues related to the Go language server, gopls. help wanted Tools This label describes issues relating to any tools in the x/tools repository.

Comments

@icholy
Copy link

icholy commented Dec 8, 2020

What did you do?

Tried to find examples/tests for the identifier under my cursor.

What did you expect to see?

Some type of GoExamples or GoTests command to navigate to relevant example/tests.

What did you see instead?

For examples, I had to open the http://pkg.go.dev and for tests I need to manually search for them.

@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Dec 8, 2020
@gopherbot gopherbot added this to the Unreleased milestone Dec 8, 2020
@icholy icholy changed the title x/tools/gopls: add go-to-example and go-to-test action x/tools/gopls: add go-to-example and go-to-tests action Dec 8, 2020
@icholy icholy changed the title x/tools/gopls: add go-to-example and go-to-tests action x/tools/gopls: add go-to-examples and go-to-tests action Dec 8, 2020
@stamblerre stamblerre modified the milestones: Unreleased, gopls/unplanned Dec 8, 2020
@stamblerre stamblerre added the FeatureRequest Issues asking for a new feature that does not need a proposal. label Dec 8, 2020
@icholy
Copy link
Author

icholy commented Dec 8, 2020

As @tv42 pointed out on reddit, the go-to-tests action would be difficult to implement because there is no naming convention currently linking tests to types/methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest Issues asking for a new feature that does not need a proposal. gopls Issues related to the Go language server, gopls. help wanted Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants