internal/lsp: fix diagnostics to report for all available files

Change-Id: Ie613161eb8444b5884733f0b6916b2f1971a4743
Reviewed-on: https://go-review.googlesource.com/c/tools/+/196025
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
This commit is contained in:
Rebecca Stambler 2019-09-17 17:19:48 -04:00
parent 11affa06ff
commit 905c8ffbfa
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ func Diagnostics(ctx context.Context, view View, f GoFile, disabledAnalyses map[
if err != nil {
return nil, "", err
}
cph := NarrowestCheckPackageHandle(cphs)
cph := WidestCheckPackageHandle(cphs)
pkg, err := cph.Check(ctx)
if err != nil {
log.Error(ctx, "no package for file", err)