go/internal/event
Rob Findley fa05545715 internal/lsp/debug: add a facility to track known bugs
Sometimes users report issues related to edge cases in Gopls that aren't
reproducible. In some of these cases, we end up guarding against
conditions that shouldn't be possible, which is an unfortunately fragile
solution.

Add a new debug.Bug function to both annotate such branches as known
bugs, and help find them when they reoccur.  For now this just records
them in the debug server, but in the future we could send the user a
message to the effect of "hey, a known bug has occurred" for debug
builds of gopls.

Also included are some minor cosmetic fixes.

Change-Id: I95df0caf2c81f430661cabd573ce8e338fa69934
Reviewed-on: https://go-review.googlesource.com/c/tools/+/318369
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2021-05-10 23:21:19 +00:00
..
core internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
export internal/lsp/debug: add a facility to track known bugs 2021-05-10 23:21:19 +00:00
keys internal/event: remove the event.eventType type 2020-04-27 15:30:19 +00:00
label internal/event/label: prevent unsafe get of non-string 2021-03-29 12:54:38 +00:00
bench_test.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
doc.go internal/telemetry: renaming to internal/event 2020-04-23 17:20:48 +00:00
event.go internal/event: remove the event.eventType type 2020-04-27 15:30:19 +00:00