Files
neovim/runtime
Mathias Fussenegger b67f689e4c lsp: Accept text document edits with version zero
There were a couple of reports of "Buffer X newer than edits" problems.
We first assumed that it is incorrect for a server to send 0 as a
version - and stated that they should send a `null` instead, given that
in the specification the `textDocument` of a `TextDocumentEdit` is a
`OptionalVersionedTextDocumentIdentifier`.

But it turns out that this was a change in 3.16, and in 3.15 and earlier
versions of the specification it was a `VersionedTextDocumentIdentifier`
and language servers didn't have a better option than sending `0` if
they don't keep track of the version numbers.

So this changes the version check to always accept `0` values.

See

- https://github.com/neovim/neovim/issues/12970
- https://github.com/neovim/neovim/issues/14256
- https://github.com/haskell/haskell-language-server/pull/1727
2021-04-14 21:29:32 +02:00
..
2021-04-14 20:48:13 +02:00
2021-03-03 18:19:01 -05:00
2017-11-07 01:16:42 +01:00
2014-12-19 15:28:49 -05:00
2021-03-09 19:21:26 +01:00
2018-01-15 23:58:52 +01:00
2020-08-15 10:57:17 -04:00
2019-11-27 22:47:25 -08:00
2019-07-29 20:50:07 +02:00
2019-01-04 02:17:23 +01:00
2019-07-29 20:50:07 +02:00
2017-01-31 02:02:09 +01:00
2014-07-29 02:12:31 +00:00