Skip to content

Commit

Permalink
Merge pull request #199 from NTaylorMullen/patch-1
Browse files Browse the repository at this point in the history
Fix TextDocument synchronization for LSP3
  • Loading branch information
david-driscoll authored Jan 15, 2020
2 parents ad24c91 + 90c06d0 commit 3bd6340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server/LanguageServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ async Task<InitializeResult> IRequestHandler<InitializeParams, InitializeResult>
{
serverCapabilities.TextDocumentSync = new TextDocumentSyncOptions()
{
Change = TextDocumentSyncKind.None,
Change = textDocumentSyncKind,
OpenClose = _collection.ContainsHandler(typeof(IDidOpenTextDocumentHandler)) || _collection.ContainsHandler(typeof(IDidCloseTextDocumentHandler)),
Save = _collection.ContainsHandler(typeof(IDidSaveTextDocumentHandler)) ?
new SaveOptions() { IncludeText = true /* TODO: Make configurable */ } :
Expand Down

0 comments on commit 3bd6340

Please sign in to comment.