diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-09-10 18:56:29 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-10 18:56:29 -0600 |
commit | 9b4cab012662514af6fda3648d544633e1d73d4b (patch) | |
tree | 298f4d627ea9c7dedaa80d406c397325bb24401e /runtime/lua/vim/treesitter/query.lua | |
parent | 91a2e7a571c8615f2ffd9046687a6b438356db2b (diff) | |
download | rneovim-9b4cab012662514af6fda3648d544633e1d73d4b.tar.gz rneovim-9b4cab012662514af6fda3648d544633e1d73d4b.tar.bz2 rneovim-9b4cab012662514af6fda3648d544633e1d73d4b.zip |
fix(lsp): schedule removal of client object (#20148)
The execution of the LspDetach autocommands in the LSP client's on_exit
function are scheduled on the event loop to avoid making API calls in a
fast context; however, this means that by the time the LspDetach
autocommands finally run the client object has already been deleted.
To address this, we also schedule the deletion of the client on the
event loop so that it is guaranteed to occur after all of the LspDetach
autocommands have fired.
Diffstat (limited to 'runtime/lua/vim/treesitter/query.lua')
0 files changed, 0 insertions, 0 deletions