Skip to content

Commit 1edf832

Browse files
committed
feat: skip ignored diagnostics
maybe
1 parent 2416212 commit 1edf832

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/cmd/dev.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ func (m BuildModel) fetchDiagnostics() tea.Cmd {
211211
Limit: stainless.Float(100),
212212
})
213213
if diagnostics.Next() {
214-
diags = append(diags, diagnostics.Current())
214+
diag := diagnostics.Current()
215+
if !diag.Ignored {
216+
diags = append(diags, diag)
217+
}
215218
}
216219
return fetchDiagnosticsMsg(diags)
217220
}

0 commit comments

Comments
 (0)