-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gopls/vulncheck: use result from gopls.vulncheck, rather than gopls.fetch_vulncheck_result #3572
Comments
Decisions, from our meeting:
In pseudocode:
In this case, the header has a single piece of metadata: |
FWIW this is the upstream issue for the LSP protocol change that would make this unnecessary: (Which will happen first: this proposal getting approved, or the sun exhausting its nonmetallic fuel? Only time will tell!) |
I don't know what is the current status of gopls. |
Shoot, I forgot to fix this before the -pre.1 release. I'll fix now, and we can cut -pre.2. |
Change https://go.dev/cl/627556 mentions this issue: |
As described in golang/vscode-go#3572 this CL reverts the behavior of the gopls.run_govulncheck command to be asynchronous. Instead, we introduce a new gopls.vulncheck command to run synchronously. We also introduce a new "vulncheck" codelens setting to control the availability of codelenses for this new command. For expedience, the command handler is simply copied rather than refactored, and minimal tests are added/modified to test the new command. Hopefully we can migrate everything to the new command soon, and delete the old command. For golang/vscode-go#3572 Change-Id: Ib3cffd5fd038813680087fa1916127663f377581 Reviewed-on: https://go-review.googlesource.com/c/tools/+/627556 Reviewed-by: Alan Donovan <[email protected]> Auto-Submit: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
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:
The text was updated successfully, but these errors were encountered: