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: completion with current/dot import package functions and variables #42775

Closed
jheroy opened this issue Nov 23, 2020 · 0 comments
Closed
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.

Comments

@jheroy
Copy link

jheroy commented Nov 23, 2020

It would be nice if completion offer current package and dot import package functions and variables like sourcegraph/go-langserver does.

Consider this code:

func completeMe(i int){}

com<>

if I type com the completeMe should popup. Dot import package just like this but the completeMe is not define current package but in other package and imported use import . "package_name".

I know do import is not recommended. But I have a very old project use this extensively.

@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 Nov 23, 2020
@gopherbot gopherbot added this to the Unreleased milestone Nov 23, 2020
@jheroy jheroy closed this as completed Nov 25, 2020
@stamblerre stamblerre removed this from the gopls/unplanned milestone Nov 25, 2020
@golang golang locked and limited conversation to collaborators Nov 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. 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