From e0d9f0457840330d574e4a28e1503db2aa1da4ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Ferr=C3=A0s?= Date: Thu, 5 Sep 2024 21:41:00 +0200 Subject: [PATCH] Trigger diagnostics on document save. --- server/internal/lsp/server/TextDocumentDidSave.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/internal/lsp/server/TextDocumentDidSave.go b/server/internal/lsp/server/TextDocumentDidSave.go index 7b1eae0..2f27a7d 100644 --- a/server/internal/lsp/server/TextDocumentDidSave.go +++ b/server/internal/lsp/server/TextDocumentDidSave.go @@ -6,6 +6,7 @@ import ( ) // Support "Hover" -func (h *Server) TextDocumentDidSave(ctx *glsp.Context, params *protocol.DidSaveTextDocumentParams) error { +func (s *Server) TextDocumentDidSave(ctx *glsp.Context, params *protocol.DidSaveTextDocumentParams) error { + s.RunDiagnostics(s.state, ctx.Notify, true) return nil }