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: remove unsynchronized write to snapshot.files
snapshot.GetVersionedFile already memoizes the file handle in snapshot.files. There is no reason to do another write, and this write is unsynchronized. Fixes golang/go#50747 Change-Id: Ib196395135de6f22dd59169accb756665ad10e58 Reviewed-on: https://go-review.googlesource.com/c/tools/+/380214 Trust: Robert Findley <[email protected]> Run-TryBot: Robert Findley <[email protected]> Reviewed-by: Bryan Mills <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
- Loading branch information