We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f5aa39 commit 033e345Copy full SHA for 033e345
private/buf/buflsp/file.go
@@ -683,6 +683,16 @@ func (f *file) RunChecks(ctx context.Context) {
683
}
684
f.CancelChecks(ctx)
685
686
+ for _, diagnostic := range f.diagnostics {
687
+ if diagnostic.Severity == protocol.DiagnosticSeverityError {
688
+ f.lsp.logger.DebugContext(
689
+ ctx, "checks skipped on diagnostic severity",
690
+ slog.String("severity", diagnostic.Severity.String()),
691
+ )
692
+ return // Skip on not buildable images.
693
+ }
694
695
+
696
workspace := f.workspace.Workspace()
697
module := f.workspace.GetModule(f.uri)
698
checkClient := f.workspace.CheckClient()
0 commit comments