1
0
mirror of https://github.com/golang/go synced 2024-11-19 03:04:42 -07:00
go/internal/lsp
Rebecca Stambler 69e0dcfa11 internal/lsp: cache package metadata to minimize calls to packages.Load
Instead of calling packages.Load on every character change, we reparse
the import declarations of the file and determine if they have
changed. We also introduce a metadata cache that caches the import
graph. This is used in type-checking and only updated on calls to
packages.Load.

Change-Id: I7cb384aba77ef3c1565d3b0db58e6c754d5fed15
Reviewed-on: https://go-review.googlesource.com/c/tools/+/165137
Reviewed-by: Ian Cottrell <iancottrell@google.com>
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-03-06 16:29:03 +00:00
..
cache internal/lsp: cache package metadata to minimize calls to packages.Load 2019-03-06 16:29:03 +00:00
cmd internal/lsp: absolutize paths when converting filenames to URIs 2019-02-21 00:07:07 +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 internal/lsp: implement incremental updates to document 2019-02-21 17:53:26 +00:00
source internal/lsp: remove handling for circular imports 2019-03-04 22:34:19 +00:00
testdata internal/lsp: remove handling for circular imports 2019-03-04 22:34:19 +00:00
completion.go internal/lsp: add additional tests for completion 2018-12-19 22:27:14 +00:00
diagnostics.go internal/lsp: set severity levels for compiler errors and vet checks 2019-02-27 23:25:17 +00:00
format.go internal/lsp: change File.Read to a File.GetContent accessor 2019-02-14 04:36:41 +00:00
imports.go internal/lsp: change File.Read to a File.GetContent accessor 2019-02-14 04:36:41 +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: remove handling for circular imports 2019-03-04 22:34:19 +00:00
position.go internal/lsp: remove error return values from interface "field" accessors 2019-02-13 21:58:50 +00:00
server.go internal/lsp: temporarily disable incremental changes 2019-03-05 15:57:04 +00:00
signature_help.go internal/lsp: implement signature help 2018-11-13 20:09:34 +00:00