neovim/runtime/lua/vim/lsp
Rishikesh Vaishnav 9625832372
fix(lsp): fix nil-index behavior for UTF-8 in _str_*index_enc methods (#16731)
Previously, the `_str_utfindex_enc` and `_str_byteindex_enc` helper functions would return `nil` when `offset_encoding == "utf-8"` and `index == nil`. Clearly, this doesn't reflect the expected behavior of the functions they're wrapping which would return the length of the line in this case. This should fix behavior with servers that use UTF-8 `offset_encoding` when applying text edits, formatting a range, and doing range code actions (though this isn't tested currently).
2021-12-20 08:54:05 -08:00
..
_snippet.lua fix(lsp): correctly parse LSP snippets #15579 2021-09-14 04:31:41 -07:00
buf.lua feat(lsp): use vim.ui.select for selecting lsp client (#16531) 2021-12-07 18:09:43 +01:00
codelens.lua feat(lsp): add per-client commands (#16101) 2021-11-01 03:14:59 -07:00
diagnostic.lua refactor(diagnostic): add warning to deprecated functions (#16536) 2021-12-08 08:47:19 -07:00
handlers.lua refactor: replace deprecated lua functions with their new versions (#16603) 2021-12-10 13:20:30 -07:00
health.lua fix(healthcheck): update builtins to the new convention #15914 2021-10-05 05:05:33 -07:00
log.lua docs(lsp): add annotations for private functions 2021-11-30 09:03:41 +01:00
protocol.lua docs(lsp): fix resolve_capabilities docstring (#16577) 2021-12-08 11:01:07 -07:00
rpc.lua fix(lsp): change rpc start notify level to warn (#16467) 2021-11-30 09:55:42 +01:00
sync.lua fix(lsp): correctly align start and end range to codepoints during incremental sync (#16670) 2021-12-17 18:05:00 -08:00
tagfunc.lua docs: mark tagfunc.lua methods as private 2021-11-18 11:30:09 -07:00
util.lua fix(lsp): fix nil-index behavior for UTF-8 in _str_*index_enc methods (#16731) 2021-12-20 08:54:05 -08:00