neovim/runtime/lua/vim/lsp
Tristan Knight 882a450a29
fix(lsp): handle locations exceeding line length #30253
Problem:
LSP spec [states](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position)
that "if the character value is greater than the line length it defaults
back to the line length", but `locations_to_items` fails in that case.

Solution:
Adjust locations_to_items to follow the spec.

closes #28281
2024-09-05 00:23:11 -07:00
..
_meta docs(lsp): annotate with vim.lsp.protocol.Methods enum #29521 2024-08-20 05:52:14 -07:00
_changetracking.lua
_dynamic.lua
_meta.lua
_snippet_grammar.lua
_tagfunc.lua
_watchfiles.lua feat(lsp): drop fswatch, use inotifywait (#29374) 2024-07-06 11:44:19 +02:00
buf.lua fix(lsp): return call hierarchy item, not the index (#30145) 2024-08-26 17:37:36 +02:00
client.lua
codelens.lua fix(lsp): don't show codelens for buffers that don't support it (#29690) 2024-07-16 19:48:54 +02:00
completion.lua docs: misc #28970 2024-09-01 13:01:24 -07:00
diagnostic.lua feat(lsp): export diagnostic conversion functions (#30064) 2024-08-27 13:16:33 -05:00
handlers.lua
health.lua feat(lsp): drop fswatch, use inotifywait (#29374) 2024-07-06 11:44:19 +02:00
inlay_hint.lua fix(lsp): inlay hints are rendered in the correct order (#29707) 2024-07-17 16:44:53 +02:00
log.lua fix(lsp): redundant spaces in lsp log (#29970) 2024-08-03 11:14:34 +02:00
protocol.lua docs(lsp): annotate with vim.lsp.protocol.Methods enum #29521 2024-08-20 05:52:14 -07:00
rpc.lua feat(lsp): support hostname in rpc.connect #30238 2024-09-03 08:10:39 -07:00
semantic_tokens.lua
sync.lua fix(lsp): prevent desync due to empty buffer (#29904) 2024-07-31 16:18:24 +02:00
util.lua fix(lsp): handle locations exceeding line length #30253 2024-09-05 00:23:11 -07:00