diff options
author | francisco souza <108725+fsouza@users.noreply.github.com> | 2020-10-25 00:28:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-25 00:28:15 -0400 |
commit | 6312792d8a6a7d293661d33d440343d4cc6e0e6e (patch) | |
tree | e7bcb8d290ff78ebeaa21350c652a7f82a497843 /runtime/lua/vim/lsp/callbacks.lua | |
parent | b59b8dd5b5fbb7f1b2695fd3effb507e0e059a85 (diff) | |
download | rneovim-6312792d8a6a7d293661d33d440343d4cc6e0e6e.tar.gz rneovim-6312792d8a6a7d293661d33d440343d4cc6e0e6e.tar.bz2 rneovim-6312792d8a6a7d293661d33d440343d4cc6e0e6e.zip |
lsp: only send buf requests to servers that support the request (#12764)
Refactors how required capabilities are detected and validated, and make
sure requests are only sent to clients that support it (and only fail if
no clients support the provided method).
The validation happens at the buf_request level, because we assume that
if someone is sending the request directly through the client, they know
what they're doing. Also, let unknown methods go through.
This is extracted from #12518 and closes #12755.
Co-authored-by: francisco souza <fsouza@users.noreply.github.com>
Diffstat (limited to 'runtime/lua/vim/lsp/callbacks.lua')
0 files changed, 0 insertions, 0 deletions