neovim/test/functional/plugin/lsp
Rishikesh Vaishnav 36c401db24
fix(lsp): correctly align start and end range to codepoints during incremental sync (#16670)
Closes #16624

Fixes two issues with aligning the start position and end position to
codepoints when calculating the start and end range.

When aligning the start position:
* use aligned byte index to calculate character index rather than 
  the unadjusted byte

When aligning the end position:
* do not adjust the end byte if it falls on a UTF-8 codepoint
* align byte to the first byte of the next codepoint rather than the
  last byte of the current codepoint
* compute character character end range on the aligned byte index

This commit also adds additional test coverage, including multibyte operations
that previously failed before this commit.
2021-12-17 18:05:00 -08:00
..
codelens_spec.lua feat(lsp): add per-client commands (#16101) 2021-11-01 03:14:59 -07:00
diagnostic_spec.lua refactor(diagnostic): make display handlers generic (#16137) 2021-10-29 18:47:34 -07:00
handler_spec.lua lsp: vim.lsp.diagnostic (#12655) 2020-11-12 22:21:34 -05:00
incremental_sync_spec.lua fix(lsp): correctly align start and end range to codepoints during incremental sync (#16670) 2021-12-17 18:05:00 -08:00
snippet_spec.lua fix(lsp): correctly parse LSP snippets #15579 2021-09-14 04:31:41 -07:00