go/gopls/internal/regtest
Robert Findley 0c71b564b9 gopls/internal/lsp: fix diagnostic suppression when folders change
Diagnostic suppression used the view-relative snapshot ID to avoid
publishing stale diagnostics. When the layout of views changes due to a
didChangeWorkspaceFolders notification, this suppression is broken as
snapshot IDs reset to 0. Fix this (hopefully temporarily) by introducing
a globally monotonic snapshot ID.

Fixes golang/go#56731

Change-Id: Ib108b1436e800cf5a45fbba298c9975a2cf1d735
Reviewed-on: https://go-review.googlesource.com/c/tools/+/450275
Reviewed-by: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Auto-Submit: Robert Findley <rfindley@google.com>
2022-11-15 00:02:48 +00:00
..
bench gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
codelens gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
completion gopls/internal: support renaming packages with int. test variants 2022-10-20 17:36:38 +00:00
debug gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
diagnostics gopls/internal/lsp: improve the Go version deprecation message 2022-10-27 13:53:43 +00:00
inlayhints gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
misc gopls: update dependencies following the v0.10.0 release 2022-11-04 16:52:27 +00:00
modfile gopls/internal/regtest: simplify awaiting diagnostics from a change 2022-11-07 14:31:48 +00:00
template gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
watch gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
workspace gopls/internal/lsp: fix diagnostic suppression when folders change 2022-11-15 00:02:48 +00:00