-
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: remove baseCtx from the View
Views don't do work, so should have no need of a context. Instead, chain the contexts inside of clone. Also, fix a latent bug where the context used in the view importsState is the snapshot backgroundCtx rather than view baseCtx: the importsState outlives the snapshot, so should not reference the snapshot context. Fortunately, the context was thus far only used for logging. For golang/go#57979 Change-Id: Icf55d69e82f19b3fd52ca7d9266df2b5589bb36e Reviewed-on: https://go-review.googlesource.com/c/tools/+/539676 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Alan Donovan <[email protected]>
- Loading branch information
Showing
3 changed files
with
6 additions
and
10 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