Skip to content

Commit

Permalink
Trigger diagnostics on document save.
Browse files Browse the repository at this point in the history
  • Loading branch information
pherrymason committed Sep 5, 2024
1 parent 898e3cb commit e0d9f04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/internal/lsp/server/TextDocumentDidSave.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit e0d9f04

Please sign in to comment.