Skip to content

gopls/vulncheck: use result from gopls.vulncheck, rather than gopls.fetch_vulncheck_result #3572

@findleyr

Description

@findleyr

In https://go.dev/cl/621055, I added support async request handling to gopls, using it to make long running command handlers run asynchronous to other LSP requests. This means that we no longer need our hacky gopls.fetch_vulncheck_result command to collect vulncheck results: the client can simply await the command result.

I didn't remove the gopls.fetch_vulncheck_result command. However, there IS an observable change in behavior for vulncheck integration in gopls: previously the gopls.run_vulncheck command would return quickly. Now it does not.

Therefore, we need to:

  1. Check that this blocking of the workspace/executeCommand request doesn't cause problems for VS Code.
  2. Eventually stop using gopls.fetch_vulncheck_result in VS Code.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions