aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/ui.lua
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2026-04-28 22:18:37 +0800
committerGitHub <noreply@github.com>2026-04-28 10:18:37 -0400
commitb9431b340f6fd4e886c18d0b117883d6e425ec81 (patch)
tree9043ab62537abbc0561cc4ab21824a0ea959c03f /runtime/lua/vim/ui.lua
parentc06e3d6f819e1284a8290a254f5f6860793cfdcd (diff)
downloadrneovim-b9431b340f6fd4e886c18d0b117883d6e425ec81.tar.gz
rneovim-b9431b340f6fd4e886c18d0b117883d6e425ec81.tar.bz2
rneovim-b9431b340f6fd4e886c18d0b117883d6e425ec81.zip
fix(lsp): show meaningful error on invalid completion response #39445
Problem: vim.NIL is truthy in Lua, so `#(result.items or result)` crashes on `#vim.NIL` when servers return null. Solution: skip spec-allowed result=null silently, raise an error on items=null with the server name. https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_completion
Diffstat (limited to 'runtime/lua/vim/ui.lua')
0 files changed, 0 insertions, 0 deletions