Files
neovim/runtime/lua/vim/lsp
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
..
2023-09-14 08:23:01 -05:00
2023-07-18 15:42:30 +01:00
2023-07-18 15:42:30 +01:00