Files
neovim/runtime/lua/vim
Yi Ming 6f733f4a9b fix(lsp): avoid scheduling client deletion before LspNotify #37685
Problem:
`Client.on_exit` runs `Client._on_detach` and the client removal logic
within two separate `vim.schedule` sequentially. However, since
`Client._on_detach` executes `LspNotify` inside `vim.schedule`, this
causes `LspNotify` to be executed after the client removal, which is
scheduled first. At that point, a valid `Client` can no longer be
retrieved within the autocmd callback.

Solution:
Put the client deletion inside the `vim.schedule` call.
2026-02-03 09:33:14 -05:00
..
2026-01-10 17:47:16 +02:00
2025-08-17 11:54:53 +08:00
2025-06-06 15:36:48 +01:00
2026-01-27 09:18:02 -05:00
2026-01-09 10:07:15 +01:00
2026-01-27 09:18:02 -05:00
2026-01-27 09:18:02 -05:00
2025-09-16 11:41:36 +08:00
2025-11-22 19:32:45 -05:00