Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/lsp/cache: intermediate test variants aren't workspace packages
When you write a test in (say) the fmt package, you get a test variant augmented with the test files. In many cases you also get test variants of the things the fmt package depends on. The primary test variant, (fmt [fmt.test]) is interesting to us, because it contains the tests. But the intermediate variants (testing [fmt.test]) aren't -- the user can only get to them indirectly. We certainly don't need to fully parse them. Treat intermediate test variants as non-workspace packages. This doesn't accomplish much yet but paves the way for later optimizations. Updates golang/go#36943. Change-Id: I1a20abcd2d67767f07132a75a20f098be6f19a76 Reviewed-on: https://go-review.googlesource.com/c/tools/+/236397 Run-TryBot: Heschi Kreinick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]>
- Loading branch information