mirror of https://github.com/golang/go.git
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:
parent
11affa06ff
commit
905c8ffbfa
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue