1
0
mirror of https://github.com/golang/go synced 2024-11-18 17:04:41 -07:00
go/internal/lsp
Ian Cottrell 744a51dd88 internal/lsp: normalise and make public diff<->edit conversions
This allows us to use the diff.ApplyEdits in tests, saving us from a different
implementation.
It also prepares for command lines that need to use diff features based on the
results of a protocol message.

Splitting content into lines is too easy to get wrong, and needs to be done
correctly or the diff results make no sense. This adds the SplitLines function
to the diff pacakge to do it right and then uses it everwhere we we already
doing it wrong.

It also makes all the diff tests external black box tests.

Change-Id: I698227d5769a2bfbfd22a64ea42906b1df9268d9
Reviewed-on: https://go-review.googlesource.com/c/tools/+/171027
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-04-15 20:31:36 +00:00
..
cache internal/lsp: avoid extra work in *cache.View.remove 2019-04-01 20:55:34 +00:00
cmd cmd/gopls: fix incomplete ClientCapabilities struct 2019-04-09 15:09:02 +00:00
diff internal/lsp: normalise and make public diff<->edit conversions 2019-04-15 20:31:36 +00:00
protocol cmd/gopls: fix incomplete ClientCapabilities struct 2019-04-09 15:09:02 +00:00
source internal/lsp: normalise and make public diff<->edit conversions 2019-04-15 20:31:36 +00:00
testdata internal/lsp: enhance document symbols support 2019-04-10 21:12:19 +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: normalise and make public diff<->edit conversions 2019-04-15 20:31:36 +00:00
completion.go internal/lsp: ignore errors for completion and signature help 2019-04-09 22:37:05 +00:00
diagnostics.go internal/lsp: support multiple views 2019-04-01 20:12:29 +00:00
format.go internal/lsp: normalise and make public diff<->edit conversions 2019-04-15 20:31:36 +00:00
highlight.go internal/lsp: add support for document highlight 2019-03-26 19:08:20 +00:00
lsp_test.go internal/lsp: normalise and make public diff<->edit conversions 2019-04-15 20:31:36 +00:00
server.go internal/lsp: ignore errors for completion and signature help 2019-04-09 22:37:05 +00:00
signature_help.go internal/lsp: ignore errors for completion and signature help 2019-04-09 22:37:05 +00:00
symbols.go internal/lsp: enhance document symbols support 2019-04-10 21:12:19 +00:00