mirror of
https://github.com/golang/go
synced 2024-11-19 01:34:40 -07:00
3cbd95df51
This change adds supports for a package belonging to multiple files. It requires additional packages.Loads for all of the packages to which a file belongs (for example, if a non-test file also belongs to a package's test variant). For now, we re-run go/packages.Load for each file we open, regardless of whether or not we already know about it. This solves the issue of packages randomly belonging to a test or not. Follow-up work needs to be done to support multiple packages in references, rename, and diagnostics. Fixes golang/go#32791 Fixes golang/go#30100 Change-Id: I0a5870a05825fc16cc46d405ef50c775094b0fbb Reviewed-on: https://go-review.googlesource.com/c/tools/+/183628 Run-TryBot: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com> |
||
---|---|---|
.. | ||
check_test.go | ||
check.go | ||
cmd_race_test.go | ||
cmd_test.go | ||
cmd.go | ||
definition_test.go | ||
definition.go | ||
export_test.go | ||
format_test.go | ||
format.go | ||
info.go | ||
query.go | ||
serve.go |