Skip to content

Commit 08bd53a

Browse files
committed
internal/lsp: run analyses despite some errors
Updates golang/go#32247 Change-Id: Id474e62ea70676c782eb49dddebd64d7f274d2cf Reviewed-on: https://go-review.googlesource.com/c/tools/+/179218 Run-TryBot: Rebecca Stambler <[email protected]> Reviewed-by: Ian Cottrell <[email protected]>
1 parent 09281b5 commit 08bd53a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/lsp/source/analysis.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (act *Action) execOnce(ctx context.Context, fset *token.FileSet) error {
158158
}
159159
act.pass = pass
160160

161-
if len(act.Pkg.GetErrors()) > 0 && !pass.Analyzer.RunDespiteErrors {
161+
if act.Pkg.IsIllTyped() && !pass.Analyzer.RunDespiteErrors {
162162
act.err = fmt.Errorf("analysis skipped due to errors in package: %v", act.Pkg.GetErrors())
163163
} else {
164164
act.result, act.err = pass.Analyzer.Run(pass)

0 commit comments

Comments
 (0)