tools/gopls/internal/server
Rob Findley ed19fc789a gopls/internal/test: synchronize notifications during commands
It turns out that in the jsonrcp2 package, call responses are
asynchronous to other notifications. Therefore, we must synchronize
tests using progress notifications.

Introduce a DelayMessages test option to reproduce these types of races.
(It worked for reproducing golang/go#70342.)

Fixes golang/go#70342

Change-Id: I4cfcd7675335694a47eaf1a2547be0301fc244c9
Reviewed-on: https://go-review.googlesource.com/c/tools/+/627696
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-11-18 01:02:45 +00:00
..
assets
call_hierarchy.go
code_action.go gopls/internal/cache: failure to extract diagnostic fixes is an error 2024-11-15 16:16:26 +00:00
code_lens.go
command.go gopls/internal/test: synchronize notifications during commands 2024-11-18 01:02:45 +00:00
completion.go
counters.go
debug.go
definition.go
diagnostics.go
folding_range.go
format.go
general.go
highlight.go
hover.go
implementation.go
inlay_hint.go
link.go
prompt.go internal/server: make MaybePromptForTelemetry no-op 2024-11-08 19:43:26 +00:00
prompt_test.go
references.go
rename.go gopls/internal/protocol: add DocumentURI.DirPath 2024-11-14 23:37:56 +00:00
selection_range.go
semantic.go
server.go gopls/internal/server: don't call window/showDocument if unsupported 2024-11-13 23:15:23 +00:00
signature_help.go
symbols.go
text_synchronization.go gopls/internal/protocol: add DocumentURI.DirPath 2024-11-14 23:37:56 +00:00
unimplemented.go gopls/internal/protocol: upgrade to latest LSP 2024-11-11 14:12:59 +00:00
workspace.go
workspace_symbol.go