go/gopls/internal/regtest
Hana (Hyang-Ah) Kim bceee4b059 internal/lsp/command: let RunVulncheckExp call gopls vulncheck
By making gopls.run_vulncheck_exp (RunVulncheckExp implements)
call `gopls vulncheck`, we achieve

  - gopls.run_vulncheck_exp can run asynchronously and be cancellable
  - log information can be forwarded as progress messages
  - isolate any failures during vulncheck execution

In this CL, we also changed not to include test files in the analysis
(match the default of govulncheck). We will add an option in the future.

TODO:
 - prevent concurrent gopls.run_vulncheck_exp
 - convert the gopls vulncheck output to diagnostics and publish it
 - remove timestamps from the `gopls vulncheck` log messages
   for simplify progress messages
 - add test to check vulnerability in third-party dependencies

Change-Id: I21592e03794cd9e9d96ed3989973a2ab7d75c538
Reviewed-on: https://go-review.googlesource.com/c/tools/+/420717
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
2022-08-04 18:21:12 +00:00
..
bench gopls/internal/regtest/bench: refactor and improve benchmarks 2022-08-04 14:58:59 +00:00
codelens internal/lsp/source: don't crash requesting gc_details for an empty file 2022-08-02 18:19:01 +00:00
completion internal/lsp/regtest: only run /default tests with -short 2022-07-26 21:20:53 +00:00
debug internal/lsp/regtest: allow sharing memoized results across regtests 2022-07-26 21:20:42 +00:00
diagnostics gopls/internal/regtest/bench: refactor and improve benchmarks 2022-08-04 14:58:59 +00:00
inlayhints internal/lsp/regtest: simplify, consolidate, and document settings 2022-07-12 16:56:46 +00:00
misc internal/lsp/command: let RunVulncheckExp call gopls vulncheck 2022-08-04 18:21:12 +00:00
modfile gopls/internal/regtest/bench: refactor and improve benchmarks 2022-08-04 14:58:59 +00:00
template gopls/internal/regtest/bench: refactor and improve benchmarks 2022-08-04 14:58:59 +00:00
watch internal/lsp: re-send diagnostics on file events 2022-08-02 18:52:36 +00:00
workspace internal/lsp: use directoryFilters in import scanning 2022-08-04 15:50:11 +00:00