go/gopls/internal/regtest
Shoshin Nikita 11c3f835bb internal/lsp/source: fix Highlight for std and 3rd-party packages
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>
2021-04-05 22:17:18 +00:00
..
bench gopls/internal/regtest: split regtests up into multiple packages 2021-01-28 15:45:56 +00:00
codelens gopls/internal/regtest: re-enable the gc_details regtest for -short 2021-03-30 20:26:08 +00:00
completion internal/lsp/completion: move postfix completions behind option 2021-03-29 18:55:49 +00:00
diagnostics internal/lsp/cache: get control of reloadOrphanedFiles 2021-03-22 18:20:18 +00:00
misc internal/lsp/source: fix Highlight for std and 3rd-party packages 2021-04-05 22:17:18 +00:00
modfile internal/lsp: 'go get' packages instead of modules 2021-02-18 19:59:00 +00:00
watch internal/lsp/cache: get control of reloadOrphanedFiles 2021-03-22 18:20:18 +00:00
workspace internal/lsp: add a temp workspace per folder, and a helper command 2021-03-15 23:11:33 +00:00
doc.go gopls/integration/regtest: move regtests to the gopls module 2020-09-03 18:25:45 +00:00
env.go gopls/internal/regtest: fix race when printing regtest state on falure 2021-03-16 19:06:39 +00:00
env_test.go gopls/internal/regtest: automate counting of editor notifications to await 2021-01-25 18:11:24 +00:00
expectation.go internal/lsp: fix support for SourceFixAll code actions 2021-03-24 23:51:27 +00:00
regtest.go gopls/internal/regtest: exit if small machine 2021-02-12 16:49:37 +00:00
runner.go internal/lsp/completion: move postfix completions behind option 2021-03-29 18:55:49 +00:00
wrappers.go internal/lsp/source: fix Highlight for std and 3rd-party packages 2021-04-05 22:17:18 +00:00