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
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -45,7 +45,8 @@ auto-killed (which is usually an expensive process)."
(run-at-time (run-at-time
3 nil (lambda (workspace) 3 nil (lambda (workspace)
(let ((lsp--cur-workspace 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)))) (funcall orig-fn))))
lsp--cur-workspace)))) lsp--cur-workspace))))