Fix formatting requests sending misversioned didChange notifications
[lsp-test.git] / src / Language / Haskell / LSP / Test.hs
index 200dbb84807856959a2dfe0bf92faa8947eb8958..dbfc8012973e0165ce97a9c508b440f380b1371e 100644 (file)
@@ -664,6 +664,7 @@ formatRange doc opts range = do
 applyTextEdits :: TextDocumentIdentifier -> List TextEdit -> Session ()
 applyTextEdits doc edits =
   let wEdit = WorkspaceEdit (Just (HashMap.singleton (doc ^. uri) edits)) Nothing
+      -- Send a dummy message to updateState so it can do bookkeeping
       req = RequestMessage "" (IdInt 0) WorkspaceApplyEdit (ApplyWorkspaceEditParams wEdit)
   in updateState (ReqApplyWorkspaceEdit req)