go/gopls/internal/regtest
Shoshin Nikita d529aec52f internal/lsp/cache: parse files with ParseFull mode to check if metadata reload is required
ParseHeader mode is used to parse only the package and import declarations.
However, change of go:embed directive should also invalidate metadata.
So, we must use ParseFull mode to get all file comments to compare
old and new go:embed directives.

Fixes golang/go#47436

Change-Id: If7cdb6741e895315bb6a6de2f207b404e15b269a
GitHub-Last-Rev: 64d606cead064ed5996eb7d55c3664940e7a1deb
GitHub-Pull-Request: golang/tools#333
Reviewed-on: https://go-review.googlesource.com/c/tools/+/339469
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Trust: Rebecca Stambler <rstambler@golang.org>
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
2021-08-06 19:38:52 +00:00
..
bench gopls/internal/regtest: fix the workspace symbols benchmark 2021-08-04 17:02:12 +00:00
codelens internal/lsp/cache: invalidate packages in setMetadata 2021-07-08 19:53:41 +00:00
completion internal/lsp/source: compute imports text edits from scratch 2021-07-22 17:13:07 +00:00
diagnostics internal/lsp/regtest: allow for unsent diagnostics in TestResolveImportCycle 2021-07-08 19:58:58 +00:00
misc internal/lsp/cache: parse files with ParseFull mode to check if metadata reload is required 2021-08-06 19:38:52 +00:00
modfile internal/lsp/regtest: run one quick fix at a time in TestUnknownRevision 2021-05-03 21:45:16 +00:00
watch gopls/internal/regtest: clean up TestFillReturnsPanic 2021-06-03 18:03:08 +00:00
workspace internal/lsp: start parsing go.work file like gopls.mod file 2021-06-24 04:20:31 +00:00