1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:08:33 -06:00
go/internal/lsp/protocol
Rebecca Stambler a7c0594f4e internal/lsp: avoid logging context cancellation
This change adds a helper function that checks if the context is
canceled, and if so, doesn't log the error. Tried to use it everywhere
in internal/lsp where it fits, which resulted in changing a few pieces
of error handling throughout.

Updates golang/go#37875

Change-Id: I59cbc6f893e3b70cf84524d9944ff7f4b4febd78
Reviewed-on: https://go-review.googlesource.com/c/tools/+/226371
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-03-31 01:46:33 +00:00
..
typescript internal/lsp: fix code.ts to generate progress and *TextEdit 2020-03-17 18:47:13 +00:00
context.go internal/lsp: avoid logging context cancellation 2020-03-31 01:46:33 +00:00
doc.go internal/lsp: the core lsp protocol 2018-09-25 15:17:08 +00:00
enums.go internal/lsp: remove duplicated enums 2019-09-25 15:30:23 +00:00
log.go internal/lsp: fix lsp trace log format for gopls 2019-10-16 17:14:07 +00:00
protocol.go internal/lsp: migrate telemetry to using the event package 2020-03-12 03:59:16 +00:00
span.go internal/span,lsp: disambiguate URIs, DocumentURIs, and paths 2020-02-14 22:51:03 +00:00
tsclient.go internal/lsp: fix code.ts to generate progress and *TextEdit 2020-03-17 18:47:13 +00:00
tsprotocol.go internal/lsp: fix code.ts to generate progress and *TextEdit 2020-03-17 18:47:13 +00:00
tsserver.go internal/lsp: fix code.ts to generate progress and *TextEdit 2020-03-17 18:47:13 +00:00