1
0
mirror of https://github.com/golang/go synced 2024-10-01 09:28:37 -06:00
go/internal/lsp/cache
Michael Matloob 46f5a7f28b go/packages: ignore no packages error from (*snapshot).load in (*session).NewView
Treat it as okay if no packages are found when loading all the packages in a
workspace. Users may open workspaces that don't have any Go files, either because
they are workspaces for other languages, or because no Go files have been created
yet.

Fixes golang/go#35455

Change-Id: I60912472ec8930649996edc150d1d19cd74a0a2e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/206140
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-11-08 17:56:16 +00:00
..
analysis.go internal/lsp/cache: handle a nil pointer exception in analysis 2019-11-08 17:37:09 +00:00
builtin.go internal/lsp: address staticcheck warnings 2019-10-04 02:16:23 +00:00
cache.go internal/lsp: use options hooks to install diff driver 2019-10-11 16:38:31 +00:00
check.go internal/lsp: enable go-diff by default 2019-11-01 15:53:06 +00:00
error_test.go internal/lsp: refactor error handling code in type-checking 2019-10-21 18:57:46 +00:00
errors.go internal/lsp: revert to old method of computing error ranges 2019-11-01 16:09:22 +00:00
external.go internal/lsp: address staticcheck warnings 2019-10-04 02:16:23 +00:00
file.go internal/lsp: modify approach to watching changed files 2019-10-22 21:33:45 +00:00
gofile.go internal/lsp: call load in (*session).NewView 2019-11-07 23:34:59 +00:00
load.go go/packages: ignore no packages error from (*snapshot).load in (*session).NewView 2019-11-08 17:56:16 +00:00
parse.go internal/lsp: stop caching diagnostics on the package 2019-10-24 22:03:59 +00:00
pkg.go internal/lsp/source: attach Package to completions when available 2019-11-05 20:21:09 +00:00
session.go go/packages: ignore no packages error from (*snapshot).load in (*session).NewView 2019-11-08 17:56:16 +00:00
snapshot.go internal/lsp: call load in (*session).NewView 2019-11-07 23:34:59 +00:00
view.go internal/lsp: add config flag to hide debugging output 2019-11-05 20:43:22 +00:00
watcher.go internal/lsp: modify approach to watching changed files 2019-10-22 21:33:45 +00:00