1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:14:43 -07:00
go/internal/lsp
Ian Cottrell 1aef897494 internal/lsp: fix for limitations of export data
It is impossible to reconstruct a line and column correctly from export data, so
we have to attempt to find open and process the file in order to guess what the
original pos was when we have one that originated in export data.
This occurs in any time in go to definition when the target is not in the same
pacakge as the source.

Change-Id: Ib2ee404d4f1c39d8bd7f1fbc2096d8d6cbeed6f8
Reviewed-on: https://go-review.googlesource.com/c/150044
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2018-11-19 18:00:18 +00:00
..
protocol internal/lsp: fix for limitations of export data 2018-11-19 18:00:18 +00:00
source internal/lsp: fix for limitations of export data 2018-11-19 18:00:18 +00:00
testdata internal/lsp: make all the tests work on 1.10 2018-11-19 17:55:51 +00:00
completion.go internal/lsp: add a preliminary test for completion 2018-11-12 19:56:38 +00:00
diagnostics.go internal/lsp: move diagnostics logic to source directory 2018-11-12 22:54:56 +00:00
lsp_test.go internal/lsp: use subtests for all lsp categories 2018-11-19 17:56:05 +00:00
position.go internal/lsp: make format work on the ast not the source 2018-11-12 21:02:38 +00:00
server.go internal/lsp: fix and add tests for formatting 2018-11-15 19:42:43 +00:00
signature_help.go internal/lsp: implement signature help 2018-11-13 20:09:34 +00:00