diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2022-08-08 12:34:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 12:34:37 +0200 |
commit | 2d5fce2cdb1254391481a1603be7bfb0872044a5 (patch) | |
tree | 9915243a41d89bfd5558ae18ea65ae84347bdbb5 /runtime/lua/vim/lsp/util.lua | |
parent | 18766e742bdc8d179ff73b739a530052c9a669e5 (diff) | |
download | rneovim-2d5fce2cdb1254391481a1603be7bfb0872044a5.tar.gz rneovim-2d5fce2cdb1254391481a1603be7bfb0872044a5.tar.bz2 rneovim-2d5fce2cdb1254391481a1603be7bfb0872044a5.zip |
feat(lsp): disable exit_timeout by default (#19672)
The lsp client used to wait up to 500ms for a language server to
shutdown before sending a TERM signal.
The intention behind the 500ms grace period was to ensure the language
server exits to prevent stale processes, but it has the side-effect that
it can interrupt language-servers which are too slow to shutdown within
500ms. Language servers tend to write out index files or project files
on shutdown, and being interrupted during this process can cause
corruption of those files.
This changes the default to not wait at all, at the risk of leaving
stale processes around if the language server isn't well behaved.
An alternative would be to wait indefinitely, but that can cause neovim
to take several seconds to exit.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
0 files changed, 0 insertions, 0 deletions