go/internal/lsp/cmd
Hana 22b709631a internal/lsp/cmd: change vulncheck to directly call the hook
Instead of invoking the command through the LSP custom command,
call the vulncheck command hook directly. That reduces the extra
overhead of bringing up the full gopls server & package loading.
The vulncheck hook loads packages again any way, so the benefit
of running the check inside gopls's custom command framework
is not huge any more.

Still `gopls vulncheck` is useful - editors don't need to install
another binary for vulncheck feature, and it will output the
result in the format easier to handle than what `govulncheck`
currently offers.

Updates golang/go#50577

Change-Id: Ia21e6d7e0c37c4a1b02dc8bbca860143524c3d1b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/404574
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
2022-05-06 16:33:28 +00:00
..
test internal/lsp: add semantic tokens for arrows in declarations 2022-04-07 14:52:22 +00:00
usage internal/lsp/cmd: change vulncheck to directly call the hook 2022-05-06 16:33:28 +00:00
call_hierarchy.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
capabilities_test.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
check.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
cmd.go internal/tool: implement structured help command 2022-05-04 22:58:41 +00:00
cmd_test.go internal/lsp/cmd: delete TestDefinitionHelpExample test 2020-11-03 23:54:15 +00:00
definition.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
export_test.go internal/lsp: refactor query definition test to allow adding a new test 2019-03-18 20:06:54 +00:00
folding_range.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
format.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
help_test.go internal/lsp/debug: add go version to gopls version output 2022-02-07 15:39:03 +00:00
highlight.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
implementation.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
imports.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
info.go internal/tool: implement structured help command 2022-05-04 22:58:41 +00:00
links.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
prepare_rename.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
references.go gopls: add long forms for all the 1 rune flags 2022-02-02 14:56:23 +00:00
remote.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
rename.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
semantictokens.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
serve.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
signature.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
subcommands.go internal/tool: implement structured help command 2022-05-04 22:58:41 +00:00
suggested_fix.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
symbols.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
vulncheck.go internal/lsp/cmd: change vulncheck to directly call the hook 2022-05-06 16:33:28 +00:00
workspace.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00
workspace_symbol.go gopls: take control of the flag printing 2022-02-02 14:52:21 +00:00