lsp
lsp copied to clipboard
`lsp-test` should update document version after every editing
Like changeDoc
https://github.com/haskell/lsp/blob/7c1fcaa1073dc79e6b330b06e34d30b5d0045af6/lsp-test/src/Language/LSP/Test.hs#L471-L476
The following function should also update the version.
-
executeCommand
-
executeCodeAction
-
rename
-
formatDoc
-
formatRange
-
applyEdit
After reading the source code, I found every function above has updated the doc version, except executeCommand
.
Hmm, looking at it it looks fine to me? even executeCommand
goes via calling the appropriate server method, which should then result in an applyEdit
coming back, which should be handled properly. So I'm not sure what's going on here.