go/internal/lsp/cmd/usage
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
..
api-json.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
bug.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
call_hierarchy.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
check.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
definition.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
fix.hlp gopls: add long forms for all the 1 rune flags 2022-02-02 14:56:23 +00:00
folding_ranges.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
format.hlp gopls: add long forms for all the 1 rune flags 2022-02-02 14:56:23 +00:00
help.hlp internal/tool: implement structured help command 2022-05-04 22:58:41 +00:00
highlight.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
implementation.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
imports.hlp gopls: add long forms for all the 1 rune flags 2022-02-02 14:56:23 +00:00
inspect.hlp gopls: cleanup the main help pages 2022-02-02 14:57:28 +00:00
licenses.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
links.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
prepare_rename.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
references.hlp gopls: add long forms for all the 1 rune flags 2022-02-02 14:56:23 +00:00
remote.hlp gopls: cleanup the main help pages 2022-02-02 14:57:28 +00:00
rename.hlp gopls: add long forms for all the 1 rune flags 2022-02-02 14:56:23 +00:00
semtok.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
serve.hlp gopls: cleanup the main help pages 2022-02-02 14:57:28 +00:00
signature.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
symbols.hlp gopls: clean up the help text 2022-02-02 14:52:08 +00:00
usage.hlp internal/tool: implement structured help command 2022-05-04 22:58:41 +00:00
version.hlp internal/lsp/debug: add go version to gopls version output 2022-02-07 15:39:03 +00:00
vulncheck.hlp internal/lsp/cmd: change vulncheck to directly call the hook 2022-05-06 16:33:28 +00:00
workspace.hlp gopls: cleanup the main help pages 2022-02-02 14:57:28 +00:00
workspace_symbol.hlp gopls: use the = form in flag parameter printing rather than a space 2022-02-02 14:56:55 +00:00