diff --git a/server/lsp_server/lsp_server.go b/server/lsp_server/lsp_server.go index 0e87564..96acd7c 100644 --- a/server/lsp_server/lsp_server.go +++ b/server/lsp_server/lsp_server.go @@ -332,6 +332,14 @@ func newDaemonClientForServer(ctx context.Context, lspServer *LspServer) *daemon uri := uri.File(report.Location.DocumentPath) if report.ErrorCode >= 1 { + // add indication that there were no errors detected + if report.Received == 0 { + lspServer.conn.Notify(ctx, lsp.MethodWindowShowMessage, lsp.ShowMessageParams{ + Type: lsp.MessageTypeError, + Message: "No error/s were detected.", + }) + } + lspServer.unpublishedDiagnostics[uri] = []daemonTypes.ErrorReport{ report, }