Skip to content

Commit

Permalink
Merge pull request #106 from mrjosh/fix/missing-on-save
Browse files Browse the repository at this point in the history
fix(diagnostics): add missing on save config to ServerCapabilities
  • Loading branch information
qvalentin authored Aug 24, 2024
2 parents 48b5988 + fbb6a12 commit fc136a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/handler/initialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func (h *langHandler) Initialize(ctx context.Context, params *lsp.InitializePara
TextDocumentSync: lsp.TextDocumentSyncOptions{
Change: lsp.TextDocumentSyncKindIncremental,
OpenClose: true,
// ensure we get a save notification to update diagnostics
Save: &lsp.SaveOptions{},
},
CompletionProvider: &lsp.CompletionOptions{
TriggerCharacters: []string{".", "$."},
Expand Down

0 comments on commit fc136a4

Please sign in to comment.