This changes the basic API of a jsonrpc2 connection to run the read loop as a method rather than in a go routine launched in the NewConn. This allows the handler to be created and bound between construction and the read loop starting, which fixes the race. Fixes golang/go#30091 Change-Id: I8201175affe431819cf473e5194d70c019f58425 Reviewed-on: https://go-review.googlesource.com/c/tools/+/170003 Run-TryBot: Ian Cottrell <iancottrell@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| cache | ||
| cmd | ||
| diff | ||
| protocol | ||
| source | ||
| testdata | ||
| completion.go | ||
| diagnostics.go | ||
| format.go | ||
| highlight.go | ||
| imports.go | ||
| lsp110_test.go | ||
| lsp_test.go | ||
| server.go | ||
| signature_help.go | ||
| symbols.go | ||