mirror of
https://github.com/golang/go
synced 2024-11-18 22:44:48 -07:00
Revert "internal/lsp: modify check for a missing package"
This reverts commit 55ee3a4131
.
Reason for revert: <forgot to run trybots>
Change-Id: I6d0890e2514841244a2a1f8ca861107c5de1f8aa
Reviewed-on: https://go-review.googlesource.com/c/tools/+/184040
Reviewed-by: Suzy Mueller <suzmue@golang.org>
This commit is contained in:
parent
55ee3a4131
commit
ba023a1bc9
3
internal/lsp/cache/load.go
vendored
3
internal/lsp/cache/load.go
vendored
@ -118,8 +118,7 @@ func (v *view) checkMetadata(ctx context.Context, f *goFile) (map[packageID]*met
|
||||
return nil, pkg.Errors, fmt.Errorf("package %s has errors, skipping type-checking", pkg.PkgPath)
|
||||
}
|
||||
for importPath, importPkg := range pkg.Imports {
|
||||
// If we encounter a package we cannot import, mark it as missing.
|
||||
if len(importPkg.CompiledGoFiles) == 0 {
|
||||
if len(importPkg.Errors) > 0 {
|
||||
if f.missingImports == nil {
|
||||
f.missingImports = make(map[packagePath]struct{})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user