Files
neovim/runtime/doc
Olivia Kinnear a03ab03a10 fix(lsp): :lsp restart restarts on client exit #37125
Problem:
`:lsp restart` detects when a client has exited by using the `LspDetach`
autocommand. This works correctly in common cases, but breaks when
restarting a client which is not attached to any buffer. It also breaks
if a client is detached in between `:lsp restart` and the actual
stopping of the client.

Solution:
Move restart logic into `vim/lsp/client.lua`, so it can hook in to
`_on_exit()`. The public `on_exit` callback cannot be used for this, as
`:lsp restart` needs to ensure the restart only happens once, even if
the command is run multiple times on the same client.
2026-01-02 01:58:10 -05:00
..
2025-12-15 13:55:15 -05:00
2025-12-15 13:55:15 -05:00
2025-12-08 01:43:02 -05:00
2024-05-15 23:19:26 +02:00
2025-12-15 13:55:15 -05:00
2025-12-06 20:33:02 -05:00
2025-12-06 20:33:02 -05:00
2025-12-06 20:33:02 -05:00
2025-12-16 13:46:04 -05:00
2025-12-15 13:55:15 -05:00
2025-12-15 13:55:15 -05:00
2025-12-15 13:55:15 -05:00
2025-06-14 17:24:36 +02:00
2025-11-15 22:47:38 -05:00
2025-12-15 13:55:15 -05:00
2025-12-06 20:33:02 -05:00
2025-12-15 13:55:15 -05:00
2025-12-06 20:33:02 -05:00
2025-12-06 20:33:02 -05:00
2025-12-06 20:33:02 -05:00
2025-12-15 13:55:15 -05:00
2025-12-16 13:46:04 -05:00
2025-12-16 12:55:32 +08:00