hrsh7th/vim-lamp

Wrong diff sending to server

Closed this issue · 5 comments

Sometimes vim-lamp send wrong diff to server.
I don't know to reproducible step.
Probably I think it occur when I edit empty buffer.

This problem reason is not the wrong diff.
The reasons is that failed clearing diagnostics.

We should support the following features maybe.

    - [ ] textDocument/willSave
    - [ ] textDocument/willSaveWaitUntil
    - [ ] textDocument/didSave

Currently, vim-lamp has no this problem (because I disabled incremental diff feature).

The problem did not relate to incremental diff.

Just bug of vim-vital-vs's diff algorithm.