Are you using an old version of gopls?
From the v0.3.0 release notes[1]:
Workspace-scoped references, rename, and go to implementation. These features use your workspace root as the search scope, so behavior will vary based on the directory you open in your editor
[1] https://github.com/golang/go/issues/33030#issuecomment-51015...