1
0
mirror of https://github.com/golang/go synced 2024-11-18 17:54:57 -07:00
go/internal/lsp
Rebecca Stambler 8634b1ecd3 internal/lsp: improve handling of code completion snippets
A few minor fixes: check that the insert text has the expected prefix
before removing it, use a bytes.Buffer to build up snippets, and check
that functions have parentheses in their insert text before trimming
them.

Change-Id: Iaeaf6fda25d6b0a375460b975188486685be1061
Reviewed-on: https://go-review.googlesource.com/c/152978
Reviewed-by: Ingo Oeser <nightlyone@googlemail.com>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2018-12-07 19:59:48 +00:00
..
cache internal/lsp: refactor source package to use an interface 2018-12-05 22:49:35 +00:00
protocol internal/lsp: add more testdata for completion and diagnostics 2018-11-20 06:06:34 +00:00
source internal/lsp: refactor source package to use an interface 2018-12-05 22:49:35 +00:00
testdata internal/lsp: implement type definitions 2018-12-04 18:51:09 +00:00
completion.go internal/lsp: improve handling of code completion snippets 2018-12-07 19:59:48 +00:00
diagnostics.go internal/lsp: refactor source package to use an interface 2018-12-05 22:49:35 +00:00
format.go internal/lsp: refactor source package to use an interface 2018-12-05 22:49:35 +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: refactor source package to use an interface 2018-12-05 22:49:35 +00:00
position.go internal/lsp: refactor source package to use an interface 2018-12-05 22:49:35 +00:00
server.go internal/lsp: refactor source package to use an interface 2018-12-05 22:49:35 +00:00
signature_help.go internal/lsp: implement signature help 2018-11-13 20:09:34 +00:00