aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/query.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-09-10 18:56:29 -0600
committerGitHub <noreply@github.com>2022-09-10 18:56:29 -0600
commit9b4cab012662514af6fda3648d544633e1d73d4b (patch)
tree298f4d627ea9c7dedaa80d406c397325bb24401e /runtime/lua/vim/treesitter/query.lua
parent91a2e7a571c8615f2ffd9046687a6b438356db2b (diff)
downloadrneovim-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