mirror of https://github.com/golang/go.git
Don't use GetParsedFile because it extracts a package with TypecheckWorkspace mode, but we want to support std and 3rd-party packages. So, we reuse the content of GetParsedFile directly in Highlight function with TypecheckFull mode. Fixes golang/go#43511 Change-Id: Ibd1d42e28a6739ba011113df0e6e7e98d1b86eb5 GitHub-Last-Rev: 3746092210a38ec152faf26c84f6b0a8bb9f0d25 GitHub-Pull-Request: golang/tools#298 Reviewed-on: https://go-review.googlesource.com/c/tools/+/307171 Trust: Robert Findley <rfindley@google.com> Trust: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| jsonrpc2_v2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typesinternal | ||
| xcontext | ||