1
0
mirror of https://github.com/golang/go synced 2024-11-18 23:14:43 -07:00
go/internal/lsp/source
Suzy Mueller 5f95ed5921 internal/imports, internal/lsp: quick fix import errors
Get quick fixes for the diagnostics related to import errors. These
fixes add, remove, or rename exactly one import.

This change exposes the individual fixes found by the imports package,
and then applies each of them separately to the source.  Since applying each
fix requires a new ast anyway, we pass in the source to be parsed each time.

Change-Id: Ibcbfa703d21b6983d774d2010716da8c25525d4f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/188059
Run-TryBot: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-08-01 20:53:47 +00:00
..
analysis.go internal/lsp: convert logging calls 2019-07-18 19:03:12 +00:00
completion_format.go internal/lsp: convert logging calls 2019-07-18 19:03:12 +00:00
completion_snippet.go internal/lsp: provide deep completion candidates 2019-06-27 18:58:03 +00:00
completion.go internal/lsp: cache the *ast.File and *token.File on the package 2019-07-16 19:44:59 +00:00
deep_completion.go internal/lsp: provide deep completion candidates 2019-06-27 18:58:03 +00:00
diagnostics_test.go internal/span: change URI.Filename so it just returns the filename 2019-06-10 21:39:43 +00:00
diagnostics.go internal/lsp: extra telemetry tagging of files and packages 2019-07-31 19:44:43 +00:00
enums.go internal/lsp: switch completion item tests to using the enum strings 2019-04-17 17:57:43 +00:00
format.go internal/imports, internal/lsp: quick fix import errors 2019-08-01 20:53:47 +00:00
highlight.go internal/lsp: cache the *ast.File and *token.File on the package 2019-07-16 19:44:59 +00:00
hover.go internal/lsp: reduce trace package to minimal StartSpan for now 2019-07-11 17:25:55 +00:00
identifier.go internal/lsp: cache the *ast.File and *token.File on the package 2019-07-16 19:44:59 +00:00
references.go internal/lsp: reduce trace package to minimal StartSpan for now 2019-07-11 17:25:55 +00:00
rename_check.go internal/lsp: cache the *ast.File and *token.File on the package 2019-07-16 19:44:59 +00:00
rename.go internal/lsp: cache the *ast.File and *token.File on the package 2019-07-16 19:44:59 +00:00
signature_help.go internal/lsp: cache the *ast.File and *token.File on the package 2019-07-16 19:44:59 +00:00
source_test.go internal/lsp: purge the remains of the xlog system now it is not used 2019-07-18 19:11:56 +00:00
suggested_fix_experimental.go internal/lsp/source: fix renaming of SuggestedFixes in experimental file 2019-07-29 09:26:21 +00:00
suggested_fix.go internal/lsp: plumb suggested fixes through the LSP 2019-06-26 21:02:18 +00:00
symbols.go internal/lsp: cache the *ast.File and *token.File on the package 2019-07-16 19:44:59 +00:00
util.go internal/lsp: handle language ID in didOpen calls 2019-07-12 19:25:23 +00:00
view.go internal/lsp: compare mod file versions used in imports 2019-07-27 17:31:35 +00:00