mirror of
https://github.com/golang/go
synced 2024-11-18 03:04:45 -07:00
53e29e9d12
Build tags are a common stumbling block for users of gopls, as build tagged files may be excluded from the initial workspace load without a clear warning. This change adds a check for every opened file to confirm if it maps to a package. If not, we show a message with suggestions. A follow-up improvement might be to check if the opened file actually has build tags to make the error message more precise (and give a better example config). Updates golang/go#31668 Change-Id: I829d8546edea65aa08274021bfde8ea2fb6eeaa1 Reviewed-on: https://go-review.googlesource.com/c/tools/+/253798 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <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 |