1
0
mirror of https://github.com/golang/go synced 2024-10-01 08:28:43 -06:00
go/internal/lsp/cache
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
..
analysis.go internal/lsp: avoid logging context cancellation 2020-03-31 01:46:33 +00:00
cache.go internal/lsp: move the debug.Instance onto the Context 2020-03-03 22:54:53 +00:00
check.go internal/lsp: avoid logging context cancellation 2020-03-31 01:46:33 +00:00
debug.go internal/lsp/lsprpc: add a handshake between forwarder and remote 2020-02-24 22:51:04 +00:00
error_test.go internal/lsp: refactor error handling code in type-checking 2019-10-21 18:57:46 +00:00
errors.go internal/lsp: avoid logging context cancellation 2020-03-31 01:46:33 +00:00
external.go internal/lsp: move the telemetry package 2020-03-18 13:22:49 +00:00
load.go internal/lsp/source: remove unused parameters from functions 2020-03-27 18:57:18 +00:00
mod.go internal/lsp/source: remove unused parameters from functions 2020-03-27 18:57:18 +00:00
os_darwin.go internal/lsp/cache: validate workspace path case 2020-03-27 19:55:53 +00:00
os_windows.go internal/lsp/cache: validate workspace path case 2020-03-27 19:55:53 +00:00
parse.go internal/lsp/source: remove unused parameters from functions 2020-03-27 18:57:18 +00:00
pkg.go internal/lsp: add support for type error analyzers 2020-03-27 17:27:16 +00:00
session.go internal/lsp: fix view rebuilding when go mod init runs 2020-03-30 17:42:33 +00:00
snapshot.go internal/lsp: remove command-line-arguments as a workspace package 2020-03-25 20:31:30 +00:00
view_test.go internal/lsp/cache: validate workspace path case 2020-03-27 19:55:53 +00:00
view.go internal/lsp/cache: validate workspace path case 2020-03-27 19:55:53 +00:00