lsp icon indicating copy to clipboard operation
lsp copied to clipboard

`lsp-test` should update document version after every editing

Open July541 opened this issue 1 year ago • 2 comments

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

July541 avatar Apr 19 '23 13:04 July541

After reading the source code, I found every function above has updated the doc version, except executeCommand.

July541 avatar May 17 '23 14:05 July541

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.

michaelpj avatar Jun 12 '23 07:06 michaelpj