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: triggers packages.Load on ctrl-hover #35716

heschik opened this issue Nov 20, 2019 · 1 comment

x/tools/gopls: triggers packages.Load on ctrl-hover #35716

heschik opened this issue Nov 20, 2019 · 1 comment


Copy link

@heschik heschik commented Nov 20, 2019

Build info master h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= => ../ h1:9zdDQZ7Thm29KFXgAX/+yaf3eVbP7djjWp/dXAppNCc= h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXeM=

Go info

go version go1.13.4 linux/amd64

What did you do?

Hovered over an indentifier with the ctrl key held down in VSCode.

What did you expect to see?

A hover more or less instantly.

What did you see instead?

Delay due to a packages.Load call. The hover triggers a didOpen for the file that declares the identifier I'm hovering over, and that didOpen seems to trigger a packages.Load call on it.

@gopherbot gopherbot added this to the Unreleased milestone Nov 20, 2019
@heschik heschik changed the title x/tools/gopls: triggers packages.Load on vctrl-hover x/tools/gopls: triggers packages.Load on ctrl-hover Nov 20, 2019
Copy link

@stamblerre stamblerre commented Nov 30, 2019

As of CL 208265, we no longer call go/packages.Load on file opens, so this should be fixed now.

@stamblerre stamblerre closed this Nov 30, 2019
@golang golang locked and limited conversation to collaborators Nov 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.