diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-10-24 10:18:36 +0100 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2024-10-24 10:53:06 +0100 |
commit | 2dcbfe78fcec5f73ce061bb24b718187b9c6b134 (patch) | |
tree | 7e8f780565d187f0da993b13a470a5f423ff87db /runtime/lua/vim/uri.lua | |
parent | 3275ae830da97ef907ff3cfb0170706b6a430f57 (diff) | |
download | rneovim-2dcbfe78fcec5f73ce061bb24b718187b9c6b134.tar.gz rneovim-2dcbfe78fcec5f73ce061bb24b718187b9c6b134.tar.bz2 rneovim-2dcbfe78fcec5f73ce061bb24b718187b9c6b134.zip |
fix(lsp.buf): use correct offset_encoding for all requests
Problem:
`lsp.buf_request` send the same params to all servers and many
calls to this pass PositionalParams which depends on the clients
offset_encoding. This can result with incorrect params being sent
to a server.
Solution:
`lsp.buf_request` `params` argument can now be passed as a function
which takes the client as the first argument. This is used in
lsp/buf.lua to construct correct params for each client request.
Diffstat (limited to 'runtime/lua/vim/uri.lua')
0 files changed, 0 insertions, 0 deletions