-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/lsp/cache: move upgrades and vulns onto the snapshot
To simplify the View and eliminate races, treat module upgrades and vulnerabilities like any other state by tracking them in the snapshot. With this change, and an additional change to track diagnostics done on behalf of ExecuteCommand, we can make TestUpgradeCodelens properly assertive and fix the underlying race of golang/go#58750. Also rewrite a unit test checking vuln result expiry as a regtest. Updates golang/go#57979 Fixes golang/go#58750 Change-Id: I4521c97f798eecd13844278a304070f661538382 Reviewed-on: https://go-review.googlesource.com/c/tools/+/540479 Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
- Loading branch information
Showing
14 changed files
with
243 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.