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.
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 oftext.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