Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/lsp/cache: lock in snapshot.knownFilesInDir
We were not locking while iterating s.files in snapshot.knownFilesInDir. All other accesses of s.files appear to be locked, so this should fix golang/go#43972. Fixes golang/go#43972 Change-Id: I01184c3992c91f8beb4a3239f70cc4487a528ec0 Reviewed-on: https://go-review.googlesource.com/c/tools/+/287573 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org>
- Loading branch information