1
0
mirror of https://github.com/golang/go synced 2024-11-19 06:54:39 -07:00
go/internal/lsp
Rebecca Stambler ccd3732616 internal/lsp: refactor code actions
This change makes codeActions look at the diagnostics provided before
responding. Specifically, before running "source.organizeImports", we
check if there is a diagnostic relating to imports.

Change-Id: I5268d5e8f144c4f2e085b2a861d0abfb7614323b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/170997
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-04-06 23:57:00 +00:00
..
cache internal/lsp: avoid extra work in *cache.View.remove 2019-04-01 20:55:34 +00:00
cmd internal/lsp: make definition use the lsp protocol 2019-04-05 17:02:55 +00:00
diff internal/lsp: change diff Op.Content to be the unjoined strings 2019-04-05 17:03:17 +00:00
protocol internal/span: span to protocol needs position as well as offset 2019-04-02 16:07:49 +00:00
source internal/lsp: change diff Op.Content to be the unjoined strings 2019-04-05 17:03:17 +00:00
testdata internal/lsp: make the guru emulation tests slightly looser with a different matching system 2019-04-04 13:25:00 +00:00
xlog internal/lsp: add the ability to log back to the client 2019-04-01 16:22:08 +00:00
code_action.go internal/lsp: refactor code actions 2019-04-06 23:57:00 +00:00
completion.go internal/lsp: add a "usePlaceholders" setting to gopls configuration 2019-04-05 14:18:02 +00:00
diagnostics.go internal/lsp: support multiple views 2019-04-01 20:12:29 +00:00
format.go internal/span: change to private fields 2019-03-15 18:05:47 +00:00
highlight.go internal/lsp: add support for document highlight 2019-03-26 19:08:20 +00:00
lsp110_test.go internal/lsp: add more testdata for completion and diagnostics 2018-11-20 06:06:34 +00:00
lsp_test.go internal/lsp: support multiple views 2019-04-01 20:12:29 +00:00
server.go internal/lsp: refactor code actions 2019-04-06 23:57:00 +00:00
signature_help.go internal/lsp: implement signature help 2018-11-13 20:09:34 +00:00
symbols.go internal/lsp: correctly report interface symbols 2019-03-28 03:05:05 +00:00