1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:14:43 -07:00
go/internal/lsp
Rebecca Stambler 7b79afddac internal/lsp: add a source.Package interface
This change adds a Package interface to the source package, which allows
us to reduce the information cached per-package (we don't use any of the
unnecessary fields in a *go/packages.Package).

This change also adds an analysis cache for each package, which is used
to cache the results of analyses to avoid recomputation.

Change-Id: I56c6b5ed51126c27f46731c87ac4eeacc63cb81a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/165750
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-03-12 16:49:27 +00:00
..
cache internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
cmd internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
diff internal/lsp/diff: fix bug that adds extra line to files on format 2019-02-13 04:28:36 +00:00
protocol tools/internal/lsp/protocol: generate LSP protocol types from source 2019-03-12 15:15:45 +00:00
source internal/lsp: add a source.Package interface 2019-03-12 16:49:27 +00:00
testdata internal/lsp: remove handling for circular imports 2019-03-04 22:34:19 +00:00
completion.go tools/cmd/gopls: modify gopls to use automatcally generated types 2019-03-12 15:13:52 +00:00
diagnostics.go tools/cmd/gopls: modify gopls to use automatcally generated types 2019-03-12 15:13:52 +00:00
format.go tools/cmd/gopls: modify gopls to use automatcally generated types 2019-03-12 15:13:52 +00:00
imports.go tools/cmd/gopls: modify gopls to use automatcally generated types 2019-03-12 15:13:52 +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 tools/cmd/gopls: modify gopls to use automatcally generated types 2019-03-12 15:13:52 +00:00
position.go tools/cmd/gopls: modify gopls to use automatcally generated types 2019-03-12 15:13:52 +00:00
server.go tools/cmd/gopls: modify gopls to use automatcally generated types 2019-03-12 15:13:52 +00:00
signature_help.go internal/lsp: implement signature help 2018-11-13 20:09:34 +00:00