mirror of https://github.com/golang/go.git
This change adds a diagnostic and error message that appears when a user edits a nested module in legacy mode. At first, I thought a diagnostic would be enough, but it's actually quite difficult to spot it when you have a bunch of "undeclared name" diagnostics caused by the nested module, so I figured a progress bar error message would also be useful. This error message just indicates to the user that they should open the nested module as its own workspace folder. Also, while debugging this, I noticed that command-line-arguments packages can have test variants, which we were never handling. So I addressed that in this change. Fixes golang/go#42109 Change-Id: Ifa6f6af401a3725835c09b76e35f889ec5cb8901 Reviewed-on: https://go-review.googlesource.com/c/tools/+/275554 Trust: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typesinternal | ||
| xcontext | ||