Fix formatting requests sending misversioned didChange notifications 0.11.0.3
authorLuke Lau <luke_lau@icloud.com>
Mon, 27 Jul 2020 12:19:07 +0000 (13:19 +0100)
committerLuke Lau <luke_lau@icloud.com>
Mon, 27 Jul 2020 12:19:07 +0000 (13:19 +0100)
commitfb93528b35992aef3ebe0a8b497cdd70aee21a12
tree93585213bf2040122955d079a0e6e3d73b653ffd
parent09681141e2938ed8dafe54b482495efd4f57b492
Fix formatting requests sending misversioned didChange notifications

Inside updateState, if a WorkspaceEdit with just the changes field was
set then it would send back didChange notifications where all the
document versions started from 0. This fixes it to actually take the
current version inside the VFS before sending it back
lsp-test.cabal
src/Language/Haskell/LSP/Test.hs
src/Language/Haskell/LSP/Test/Session.hs