go/gopls/internal/lsp/source
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
..
completion gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
add_import.go
api_json.go go/analysis/passes/loopclosure: enable analysis of parallel subtests 2022-11-03 17:48:16 +00:00
call_hierarchy.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
code_lens.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
comment.go
comment_go118.go
comment_go118_test.go
diagnostics.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
extract.go all: fix a few function names on comments 2022-10-10 13:22:38 +00:00
fix.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
folding_range.go
format.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
format_test.go
gc_annotations.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
highlight.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
hover.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
identifier.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
identifier_test.go
implementation.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
inlay_hint.go
known_packages.go gopls/internal/lsp/cache: use typed strings (PackagePath et al) throughout 2022-11-11 03:59:42 +00:00
options.go gopls: update dependencies following the v0.10.0 release 2022-11-04 16:52:27 +00:00
options_test.go
references.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
rename.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
rename_check.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
signature_help.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
source_test.go internal/diff: ToUnified may fail 2022-10-07 15:16:55 +00:00
stub.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
symbols.go internal/lsp/source: derive document symbols from syntax alone 2022-09-23 13:51:08 +00:00
types_format.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
util.go gopls/internal/lsp/cache: use Package.FileSet where possible 2022-11-11 15:24:32 +00:00
util_test.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
view.go gopls/internal/lsp: fix diagnostic suppression when folders change 2022-11-15 00:02:48 +00:00
workspace_symbol.go gopls/internal/lsp/cache: use typed strings (PackagePath et al) throughout 2022-11-11 03:59:42 +00:00
workspace_symbol_test.go