go/internal/lsp/protocol
Rob Findley d93e913c1a internal/lsp/debug: hook runtime/trace into event spans
Existing spans defined within gopls are leveraged to add runtime/trace
tasks, regions, and logging.

This made it easier to understand gopls' execution, though we still have
relatively sparse logging (arguably because we're conscious of the fact
that logs are reflected back to the LSP client). Add a new log package
with the concept of log level to facilitate excluding trace logs from
the LSP.

Add a little bit of additional instrumentation to demonstrate the usage
of the new package.

Change-Id: Id337be806484201103e30bfe2c8c62c7d7c363c7
Reviewed-on: https://go-review.googlesource.com/c/tools/+/275252
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Trust: Robert Findley <rfindley@google.com>
2020-12-11 18:50:31 +00:00
..
typescript internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
codeactionkind.go gopls: add "go test" code action 2020-10-13 16:52:01 +00:00
context.go internal/lsp/debug: hook runtime/trace into event spans 2020-12-11 18:50:31 +00:00
doc.go
enums.go internal/lsp: remove duplicated enums 2019-09-25 15:30:23 +00:00
log.go internal/jsonrpc2: Add Close method to Stream. 2020-05-27 15:00:44 +00:00
protocol.go internal/lsp: fix builds and tests for go1.12+ 2020-08-27 14:30:46 +00:00
span.go internal/lsp: allow narrower scope for convenience CodeActions 2020-07-27 23:36:28 +00:00
tsclient.go internal/lsp: update lsp protocol stubs to match LSP 3.16 revisions 2020-10-27 18:00:23 +00:00
tsprotocol.go internal/lsp: make Diagnostics.CodeDescription a pointer 2020-11-02 20:58:24 +00:00
tsserver.go internal/lsp: update lsp protocol stubs to match LSP 3.16 revisions 2020-10-27 18:00:23 +00:00