go/gopls/doc
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
..
design gopls/doc: clean up and slightly reorganize documentation 2021-01-14 06:55:38 +00:00
advanced.md gopls/doc: update stale documentation on generics 2022-03-29 16:50:19 +00:00
analyzers.md go/tools: add check for time formats with 2006-02-01 2022-08-03 20:00:23 +00:00
command-line.md gopls/doc: remove bad gopls cli link 2021-10-20 20:41:51 +00:00
commands.md internal/lsp/command: let RunVulncheckExp call gopls vulncheck 2022-08-04 18:21:12 +00:00
contributing.md gopls/doc: add instructions for the new "kokoro rerun" feature 2021-09-20 19:55:18 +00:00
daemon.md gopls/doc: clarify how to set remote.listen.timeout 2021-03-08 14:22:49 +00:00
emacs.md Update emacs.md - add .dir-locals.el example 2021-03-19 04:40:15 +00:00
features.md gopls: change the default value for templateExtensions to be empty 2022-01-13 20:56:24 +00:00
generate.go internal/lsp: add settings for inlay hints and enable 2022-06-22 17:08:41 +00:00
generate_test.go gopls/doc: use improved code generator for API doc 2021-12-16 11:15:33 +00:00
inlayHints.md internal/lsp: update inlay hints documentation to include go snippets 2022-07-26 18:27:49 +00:00
semantictokens.md internal/lsp: produce "method" in place of "member" as per the spec 2021-09-13 21:01:54 +00:00
settings.md internal/lsp/source: document the handling of GOPRIVATE for linkTarget 2022-07-28 19:37:47 +00:00
subl.md gopls/doc: how to request a particular gopls w/ sublime text 2022-02-04 21:02:33 +00:00
troubleshooting.md gopls: merge README and user.md 2021-01-21 18:28:06 +00:00
vim.md gopls/doc: update neovim examples for nvim 0.7 2022-04-12 22:37:10 +00:00
workspace.md gopls/doc: address additional comments on workspace.md 2022-03-02 17:29:27 +00:00