mirror of
https://github.com/neovim/neovim.git
synced 2025-11-15 23:01:24 +00:00
fix(lsp): don't immediately force shutdown when using a timeout (#36455)
This commit is contained in:
@@ -888,7 +888,7 @@ function Client:stop(force)
|
|||||||
|
|
||||||
lsp._watchfiles.cancel(self.id)
|
lsp._watchfiles.cancel(self.id)
|
||||||
|
|
||||||
if force or not self.initialized or self._graceful_shutdown_failed then
|
if force == true or not self.initialized or self._graceful_shutdown_failed then
|
||||||
rpc.terminate()
|
rpc.terminate()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user