mirror of https://github.com/golang/go.git
While evaluating workspace symbols, we avoid duplicate packages per package path in an effort to save computing time and eliminate duplicate results. But for simplicity, we later guard to ensure that we don't ever walk files twice. We can just rely on this guard to prevent duplication, and walk all known packages. This ensures we don't miss symbols, at minimal additional cost, and simplies the code. This is a roll-forward of CL 272686, which was accidentally submitted too early. Fixes golang/go#42791 Change-Id: I8c39b7afe6c38fedb0e21831d88c28d13d51f102 Reviewed-on: https://go-review.googlesource.com/c/tools/+/274243 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Go Bot <gobot@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typesinternal | ||
| xcontext | ||