neovim/test/functional/plugin
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
..
lsp lsp: client stop cleanups (#13877) 2021-02-19 22:05:49 -05:00
health_spec.lua tests/ui: cleanup illegitimate usages of "attr_ignore" 2019-10-13 22:10:42 +02:00
lsp_spec.lua lsp: Accept text document edits with version zero 2021-04-14 21:29:32 +02:00
man_spec.lua tests/ui: remove unnecessary screen:detach() 2019-10-13 22:10:42 +02:00
matchparen_spec.lua test: Eliminate plugin/helpers.lua 2019-08-05 23:55:57 +02:00
msgpack_spec.lua test: Eliminate plugin/helpers.lua 2019-08-05 23:55:57 +02:00
shada_spec.lua test/shada_spec: avoid exit_event race #10951 2019-09-05 09:48:34 -07:00