1
0
mirror of https://github.com/golang/go synced 2024-11-18 19:44:46 -07:00
go/internal/lsp/cache
Rohan Challa e46a7b92c0 internal/lsp: add support for sourceFixAll analyzers
This change adds support for analyzers that have suggested fixes of the kind Source.FixAll. This will allow these fixes to be applied on save if the user desires.

To auto apply these fixes on save, make sure your settings.json looks like:

"[go]": {
	"editor.codeActionsOnSave": {
		...
		"source.fixAll": true,
		...
	},
	...
}

Update golang/go#37221

Change-Id: I534e4f6c8c51ec2848cf2899aab68f587ba68423
Reviewed-on: https://go-review.googlesource.com/c/tools/+/223658
Run-TryBot: Rohan Challa <rohan@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-03-26 20:01:16 +00:00
..
analysis.go internal/telemetry: add type safe tag keys 2020-03-18 13:29:43 +00:00
cache.go internal/lsp: move the debug.Instance onto the Context 2020-03-03 22:54:53 +00:00
check.go internal/telemetry: add type safe tag keys 2020-03-18 13:29:43 +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: move the telemetry package 2020-03-18 13:22:49 +00:00
external.go internal/lsp: move the telemetry package 2020-03-18 13:22:49 +00:00
load.go internal/lsp: print view-specific environment 2020-03-24 20:15:47 +00:00
mod.go internal/lsp: fix nil pointer in 'go mod why' logic 2020-03-24 16:11:17 +00:00
parse.go internal/lsp: move the telemetry package 2020-03-18 13:22:49 +00:00
pkg.go internal/lsp: add support for sourceFixAll analyzers 2020-03-26 20:01:16 +00:00
session.go internal/lsp: migrate telemetry to using the event package 2020-03-12 03:59:16 +00:00
snapshot.go internal/lsp: remove command-line-arguments as a workspace package 2020-03-25 20:31:30 +00:00
view.go internal/lsp: print view-specific environment 2020-03-24 20:15:47 +00:00