From 90c06d043a0ba6f6384838122846b16cc334c281 Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Mon, 13 Jan 2020 10:36:02 -0800 Subject: [PATCH] Fix TextDocument synchronization for LSP3 - For LSP3 clients the TextDocumentSynchronization kind is always set to none without this. For the VS LSP client this results in language servers never getting any text document synchronization events. --- src/Server/LanguageServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server/LanguageServer.cs b/src/Server/LanguageServer.cs index e67798a1f..8e151edaa 100644 --- a/src/Server/LanguageServer.cs +++ b/src/Server/LanguageServer.cs @@ -458,7 +458,7 @@ async Task IRequestHandler { 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 */ } :