tools/lsp: deregister workspace shutdown action

...if workspace buffers are present during the deferred shutdown.
This commit is contained in:
Henrik Lissner
2019-10-22 20:04:07 -04:00
parent 8d777d07ba
commit b7e2c7509f

View File

@@ -45,7 +45,8 @@ auto-killed (which is usually an expensive process)."
(run-at-time
3 nil (lambda (workspace)
(let ((lsp--cur-workspace workspace))
(unless (lsp--workspace-buffers lsp--cur-workspace)
(if (lsp--workspace-buffers lsp--cur-workspace)
(setf (lsp--workspace-shutdown-action lsp--cur-workspace) nil)
(funcall orig-fn))))
lsp--cur-workspace))))