1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:14:43 -07:00
go/internal/lsp/cache
Rebecca Stambler a644f81d5e internal/lsp: handle metadata reloads for ad-hoc packages
Now that we are reloading metadata for workspace packages by package
path, ad-hoc packages get their metadata reloaded incorrectly. If an
ad-hoc package has no metadata, reload it by reloading the entire
directory.

Fixes golang/go#36753

Change-Id: Ie440f6f76a220009d487b7ceadcf40594643e969
Reviewed-on: https://go-review.googlesource.com/c/tools/+/216307
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-01-27 19:36:31 +00:00
..
analysis.go internal/lsp: finish renaming CheckPackageHandle to PackageHandle 2020-01-14 23:56:10 +00:00
cache.go internal/lsp: remove the Context argument from NewSession 2020-01-21 23:07:03 +00:00
check.go internal/lsp/cache: fix GOPATH vendoring 2020-01-24 00:03:48 +00:00
debug.go internal/lsp: don't clear file contents on save 2019-12-19 23:08:27 +00:00
error_test.go internal/lsp: refactor error handling code in type-checking 2019-10-21 18:57:46 +00:00
errors.go go/packages: handle an overlay edge case with test variants 2020-01-23 02:22:18 +00:00
external.go internal/lsp: check that a file handle is unmodified before read 2020-01-23 20:52:07 +00:00
load.go internal/lsp: push more build-specific logic into the view 2020-01-24 21:10:25 +00:00
mod_tidy.go internal/lsp/cache: move mod-related functions and file 2020-01-24 14:45:41 +00:00
overlay.go internal/lsp: support multiple URIs in (*view).invalidateContent 2020-01-23 20:19:14 +00:00
parse.go internal/lsp: don't invalidate workspace when a mod file is opened 2020-01-10 21:20:43 +00:00
pkg.go internal/lsp: push more build-specific logic into the view 2020-01-24 21:10:25 +00:00
session.go internal/lsp: push more build-specific logic into the view 2020-01-24 21:10:25 +00:00
snapshot.go internal/lsp: handle metadata reloads for ad-hoc packages 2020-01-27 19:36:31 +00:00
view.go internal/lsp: return context cancellation from LookupBuiltin 2020-01-27 18:55:29 +00:00