From 01acc029acecdf5c269225c7e7e4a4ec6dae5eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Bj=C3=B6rkstr=C3=B6m?= Date: Tue, 22 Jan 2019 00:36:26 +0200 Subject: [PATCH] Disable Incremental changes for .cake files - This is due to bug in Bakery. See https://github.com/cake-build/bakery/issues/111 for more information. --- .../Handlers/TextDocumentSyncHandler.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OmniSharp.LanguageServerProtocol/Handlers/TextDocumentSyncHandler.cs b/src/OmniSharp.LanguageServerProtocol/Handlers/TextDocumentSyncHandler.cs index 49c31c6cea..5669e3082c 100644 --- a/src/OmniSharp.LanguageServerProtocol/Handlers/TextDocumentSyncHandler.cs +++ b/src/OmniSharp.LanguageServerProtocol/Handlers/TextDocumentSyncHandler.cs @@ -31,9 +31,9 @@ public static IEnumerable Enumerate( Mef.IRequestHandler>()) { // TODO: Fix once cake has working support for incremental - // var documentSyncKind = TextDocumentSyncKind.Incremental; - // if (selector.ToString().IndexOf(".cake") > -1) documentSyncKind = TextDocumentSyncKind.Full; - yield return new TextDocumentSyncHandler(openHandler, closeHandler, bufferHandler, selector, TextDocumentSyncKind.Incremental, workspace); + var documentSyncKind = TextDocumentSyncKind.Incremental; + if (selector.ToString().IndexOf(".cake") > -1) documentSyncKind = TextDocumentSyncKind.Full; + yield return new TextDocumentSyncHandler(openHandler, closeHandler, bufferHandler, selector, documentSyncKind, workspace); } }