diff --git a/internal/lsp/cache/check.go b/internal/lsp/cache/check.go index c494fbc573..558836d3db 100644 --- a/internal/lsp/cache/check.go +++ b/internal/lsp/cache/check.go @@ -292,8 +292,8 @@ func (imp *importer) typeCheck(ctx context.Context, cph *checkPackageHandle, m * } check := types.NewChecker(cfg, imp.view.session.cache.FileSet(), pkg.types, pkg.typesInfo) - // Ignore type-checking errors. - check.Files(files) + // Type checking errors are handled via the config, so ignore them here. + _ = check.Files(files) return pkg, nil }