diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2021-11-05 10:10:27 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-05 10:10:27 -0600 |
commit | 1fdbd29dfa6366f8346693d0bf67f4f782ab0f32 (patch) | |
tree | 03597b9192e26a4ee04f636738028820096d42d9 /test/functional/lua/luaeval_spec.lua | |
parent | c0ba315b54a7204efdef71965d156ba5238b1e9a (diff) | |
download | rneovim-1fdbd29dfa6366f8346693d0bf67f4f782ab0f32.tar.gz rneovim-1fdbd29dfa6366f8346693d0bf67f4f782ab0f32.tar.bz2 rneovim-1fdbd29dfa6366f8346693d0bf67f4f782ab0f32.zip |
fix(diagnostic): handle an unknown or missing client (#16242)
Sometimes plugins use pseudo-client IDs (e.g. nvim-lint or null-ls) in
order to hook into the LSP infrastructure without being a bona fide LSP
client. In these cases, get_client_by_id() will return nil since the
client ID given does not correspond to a real client recognized by the
LSP subsystem. When this happens, use "unknown" for the client name.
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
0 files changed, 0 insertions, 0 deletions