diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-04-26 14:58:17 +0100 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-04-26 16:21:37 +0100 |
commit | b2c26a875b9dfd17fd05cf01cf5cc13eb2a10dfd (patch) | |
tree | 5e58c5b1bac7333acd2662dd41eac1e0d62e558f /test/functional/lua/iter_spec.lua | |
parent | b8273c9a339626078d49e706d882878090b07d42 (diff) | |
download | rneovim-b2c26a875b9dfd17fd05cf01cf5cc13eb2a10dfd.tar.gz rneovim-b2c26a875b9dfd17fd05cf01cf5cc13eb2a10dfd.tar.bz2 rneovim-b2c26a875b9dfd17fd05cf01cf5cc13eb2a10dfd.zip |
fix(lsp): ensure buffer is not attached more than once
Fixes regression introduced in #28030
If an LSP server is restarted, then the associated `nvim_buf_attach`
call will not detach if no buffer changes are sent between the client
stopping and a new one being created. This leads to `nvim_buf_attach`
being called multiple times for the same buffer, which then leads to
changetracking sending duplicate requests to the server (one per
attach).
To solve this, introduce separate tracking (client agnostic) on which
buffers have had calls to `nvim_buf_attach`.
Diffstat (limited to 'test/functional/lua/iter_spec.lua')
0 files changed, 0 insertions, 0 deletions