1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:04:44 -07:00
go/internal/lsp
Suzy Mueller fdb8f0bb4e internal/lsp: cache the imports ProcessEnv across imports calls
The imports ProcessEnv contains cached module and filesystem state. This change
allows gopls to use the same ProcessEnv and resolver across multiple calls to the
internal/imports library.

A ProcessEnv belongs to a view, because the cached module state depends
on the module that is open in the workspace.

Since we do not yet track whether the 'go.mod' file has changed, we
conservatively reset the cached state in the module resolver before
every call to imports.Process.

Change-Id: I27c8e212cb0b477ff425d5ed98a544b27b7d92ee
Reviewed-on: https://go-review.googlesource.com/c/tools/+/184921
Run-TryBot: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-07-16 21:50:18 +00:00
..
browser internal/lsp: add version and bug commands 2019-05-11 04:16:02 +00:00
cache internal/lsp: cache the imports ProcessEnv across imports calls 2019-07-16 21:50:18 +00:00
cmd internal/lsp: fix the incomplete and broken commit 2019-07-16 20:34:22 +00:00
debug internal/lsp: add an rpc summary debug page using the metrics 2019-07-15 03:47:58 +00:00
diff internal/lsp: enable incrementalSync by default 2019-06-26 20:40:24 +00:00
fuzzy internal/lsp/fuzzy: add fuzzy matching library 2019-07-03 21:24:19 +00:00
protocol internal/lsp: remove the non context xlog path 2019-07-15 03:45:47 +00:00
snippet internal/lsp: introduce snippet builder object 2019-04-25 18:37:29 +00:00
source internal/lsp: cache the imports ProcessEnv across imports calls 2019-07-16 21:50:18 +00:00
telemetry internal/lsp: reduce trace package to minimal StartSpan for now 2019-07-11 17:25:55 +00:00
testdata internal/lsp: add temporary file to fix bug with tip go 2019-07-15 22:19:14 +00:00
tests internal/lsp: add links search in comments and string literals 2019-07-12 18:53:41 +00:00
xlog internal/lsp: remove the non context xlog path 2019-07-15 03:45:47 +00:00
code_action.go internal/lsp: convert all logging calls to the context version 2019-07-15 03:44:59 +00:00
completion.go internal/lsp: convert all logging calls to the context version 2019-07-15 03:44:59 +00:00
definition.go internal/lsp: attach documentation to signature help 2019-06-06 17:46:28 +00:00
diagnostics.go internal/lsp: convert all logging calls to the context version 2019-07-15 03:44:59 +00:00
format.go internal/lsp: cache the *ast.File and *token.File on the package 2019-07-16 19:44:59 +00:00
general.go internal/lsp: convert all logging calls to the context version 2019-07-15 03:44:59 +00:00
highlight.go internal/lsp: convert all logging calls to the context version 2019-07-15 03:44:59 +00:00
hover.go internal/lsp: remove the unused function 'markupContent'. 2019-07-08 17:12:32 +00:00
link.go internal/lsp: cache the *ast.File and *token.File on the package 2019-07-16 19:44:59 +00:00
lsp_test.go internal/lsp: sort rename results 2019-07-15 22:13:26 +00:00
references.go internal/lsp: convert all logging calls to the context version 2019-07-15 03:44:59 +00:00
rename.go internal/lsp: separate refactorings out of memoization CL 2019-06-25 16:04:30 +00:00
reset_golden.sh internal/lsp: fix definition tests to use golden files 2019-05-10 21:06:55 +00:00
server.go interal/lsp: add context based version of xlog 2019-07-15 03:44:47 +00:00
signature_help.go internal/lsp: convert all logging calls to the context version 2019-07-15 03:44:59 +00:00
symbols.go internal/lsp: reduce trace package to minimal StartSpan for now 2019-07-11 17:25:55 +00:00
text_synchronization.go internal/lsp: add tracing to the didOpen call 2019-07-16 17:52:09 +00:00
util.go internal/lsp: cache the *ast.File and *token.File on the package 2019-07-16 19:44:59 +00:00
workspace.go internal/lsp: stop making background contexts everywhere 2019-07-11 16:38:52 +00:00