Skip to content

Commit

Permalink
Fix initialization results
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew committed May 14, 2024
1 parent cd7d57e commit 7ee53e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/langium/src/lsp/language-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,8 @@ export class DefaultLanguageServer implements LanguageServer {
commands: commandNames
},
textDocumentSync: {
change: documentUpdateHandler.didChangeContent
? TextDocumentSyncKind.Incremental
: TextDocumentSyncKind.None,
openClose: Boolean(documentUpdateHandler.didOpenDocument) || Boolean(documentUpdateHandler.didCloseDocument),
change: TextDocumentSyncKind.Incremental,
openClose: true,
save: Boolean(documentUpdateHandler.didSaveDocument),
willSave: Boolean(documentUpdateHandler.willSaveDocument),
willSaveWaitUntil: Boolean(documentUpdateHandler.willSaveDocumentWaitUntil)
Expand Down

0 comments on commit 7ee53e9

Please sign in to comment.