tools/lsp: deregister workspace shutdown action
...if workspace buffers are present during the deferred shutdown.
This commit is contained in:
parent
8d777d07ba
commit
b7e2c7509f
1 changed files with 2 additions and 1 deletions
|
@ -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))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue