Skip to content

Commit 8071d99

Browse files
Remove "no errors" diagnostics (#45)
Closes #44 Don't know why I needed this. I just tested again without it and VSCode is clearing the errors successfully 🤷
1 parent 4e8ff89 commit 8071d99

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkg/server/diagnostics.go

-10
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,6 @@ func (s *server) diagnosticsLoop() {
7676
diags = append(diags, <-lintChannel...)
7777
}
7878

79-
if len(diags) == 0 {
80-
diags = []protocol.Diagnostic{
81-
{
82-
Source: "jsonnet",
83-
Message: "No errors or warnings",
84-
Severity: protocol.SeverityInformation,
85-
},
86-
}
87-
}
88-
8979
err = s.client.PublishDiagnostics(context.Background(), &protocol.PublishDiagnosticsParams{
9080
URI: uri,
9181
Diagnostics: diags,

0 commit comments

Comments
 (0)