Skip to content

Commit

Permalink
Disable Incremental changes for .cake files
Browse files Browse the repository at this point in the history
- This is due to bug in Bakery.
  See cake-build/bakery#111 for more information.
  • Loading branch information
bjorkstromm committed Jan 21, 2019
1 parent 427b28f commit 01acc02
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public static IEnumerable<IJsonRpcHandler> Enumerate(
Mef.IRequestHandler<UpdateBufferRequest, object>>())
{
// 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);
}
}

Expand Down

0 comments on commit 01acc02

Please sign in to comment.