9fans / acme-lsp

Language Server Protocol tools for the acme text editor
MIT License
197 stars 25 forks source link

make sure editList follows the sequence from beginning to end #51

Closed tw4452852 closed 2 years ago

tw4452852 commented 2 years ago

Some language servers (elixir-ls in my case) will help reverse the edit sequence before sending the result back to the client. But in the current implementation of text.Edit, we already apply the edit reversely. So, in order to fix this issue, let's make sure the edit sequence meets our assumption.

Fix #50

Signed-off-by: Tw tw19881113@gmail.com