diff options
author | Chris AtLee <chris.atlee@shopify.com> | 2023-08-31 04:00:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 10:00:24 +0200 |
commit | c235959fd909d75248c066a781475e207606c5aa (patch) | |
tree | 340f439aa9c6cc533cc33e14439acc473662c35e /test/functional/lua/json_spec.lua | |
parent | ee56daebb6468075e743db0d605cb3f2a1699419 (diff) | |
download | rneovim-c235959fd909d75248c066a781475e207606c5aa.tar.gz rneovim-c235959fd909d75248c066a781475e207606c5aa.tar.bz2 rneovim-c235959fd909d75248c066a781475e207606c5aa.zip |
fix(lsp): only disable inlay hints / diagnostics if no other clients are connected (#24535)
This fixes the issue where the LspNotify handlers for inlay_hint /
diagnostics would end up refreshing all attached clients.
The handler would call util._refresh, which called
vim.lsp.buf_request, which calls the method on all attached clients.
Now util._refresh takes an optional client_id parameter, which is used
to specify a specific client to update.
This commit also fixes util._refresh's handling of the `only_visible`
flag. Previously if `only_visible` was false, two requests would be made
to the server: one for the visible region, and one for the entire file.
Co-authored-by: Stanislav Asunkin <1353637+stasjok@users.noreply.github.com>
Co-authored-by: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
Diffstat (limited to 'test/functional/lua/json_spec.lua')
0 files changed, 0 insertions, 0 deletions