1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:28:32 -06:00
go/internal/lsp/mod
Rebecca Stambler ab2804fb9c internal/lsp: don't offer suggested fixes for generated files
As suggested on Slack, a better fix for golang/go#38467 would be to hide
suggested fixes on generated files. This way, the diagnostics are still
visible but files are not unintentionally modified.

Also, deleted the SuggestedFixes field on source.Diagnostic, since it's
entirely unused.

Change-Id: I10756471e0f913465b1cccd7f222eea0f4de77fe
Reviewed-on: https://go-review.googlesource.com/c/tools/+/230999
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-05-01 06:56:59 +00:00
..
testdata/unchanged internal/lsp/tests: fix reset of golden files 2020-02-19 14:42:13 +00:00
code_lens.go internal/event: renaming the main event API functions 2020-04-23 17:21:36 +00:00
diagnostics.go internal/lsp: don't offer suggested fixes for generated files 2020-05-01 06:56:59 +00:00
format.go internal/event: renaming the main event API functions 2020-04-23 17:21:36 +00:00
hover.go internal/event: renaming the main event API functions 2020-04-23 17:21:36 +00:00
mod_test.go internal/lsp: fix errors found by staticcheck 2020-03-19 19:20:54 +00:00