neovim/test/functional/plugin
Sergey Slipchenko 345bd91db2
fix(lsp): handle absence of a trailing newline #25194
Fixes #24339

rust-analyzer sends "Invalid offset" error in such cases. Some other
servers handle it specially.

LSP spec mentions that "A range is comparable to a selection in an
editor". Most editors don't handle trailing newlines the same way
Neovim/Vim does, it's clearly visible if it's present or not. With that
in mind it's understandable why sending end position as simply the start
of the line after the last one is considered invalid in such cases.
2023-09-21 03:06:40 -07:00
..
lsp test(lsp): add normalize_markdown tests 2023-09-20 07:00:52 +01:00
ccomplete_spec.lua dist: generated version of ccomplete.vim (#21623) 2023-01-05 11:00:32 -05:00
cfilter_spec.lua dist: transpile cfilter.vim => cfilter.lua #21662 2023-01-08 12:31:38 -08:00
editorconfig_spec.lua fix(editorconfig): do not set 'endofline' 2023-08-27 19:27:25 +01:00
health_spec.lua feat(health): fold successful healthchecks #22866 2023-06-06 08:42:26 -07:00
lsp_spec.lua fix(lsp): handle absence of a trailing newline #25194 2023-09-21 03:06:40 -07:00
man_spec.lua test(plugin/man_spec): use pesc() on actual_file in pattern (#25199) 2023-09-17 06:07:53 +08:00
matchparen_spec.lua chore: fix typos (#17755) 2022-03-25 19:57:59 +01:00
msgpack_spec.lua test: Eliminate plugin/helpers.lua 2019-08-05 23:55:57 +02:00
shada_spec.lua test: don't unnecessarily specify win/buf for nvim_(get|set)_option_value 2023-05-22 13:02:07 +06:00