diff options
| author | glepnir <glephunter@gmail.com> | 2026-03-14 17:20:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-14 05:20:34 -0400 |
| commit | 5653b25e9b8fa311db16dd306a9b849e5456c603 (patch) | |
| tree | ca7c58475a21df7223eaa4c57a7212b015a8edb9 /runtime/lua/vim/provider/python.lua | |
| parent | b4e3461e3fdfaa7d330ebe546cb75620a23ab54c (diff) | |
| download | rneovim-5653b25e9b8fa311db16dd306a9b849e5456c603.tar.gz rneovim-5653b25e9b8fa311db16dd306a9b849e5456c603.tar.bz2 rneovim-5653b25e9b8fa311db16dd306a9b849e5456c603.zip | |
fix(lsp): handle non-string documentation in completion items #38291
Problem: `get_doc` throws error with "attempt to get length of a userdata
value" when `item.documentation` is truthy but not a string (e.g. vim.NIL
from a JSON null).
Solution: Check `type(item.documentation)` before taking its length.
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions