mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-27 14:23:43 -05:00
tools/lsp: deregister workspace shutdown action
...if workspace buffers are present during the deferred shutdown.
This commit is contained in:
@@ -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))))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user