From b7e2c7509f92aec1412b1b66d8f7075a6d23693e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 22 Oct 2019 20:04:07 -0400 Subject: [PATCH] tools/lsp: deregister workspace shutdown action ...if workspace buffers are present during the deferred shutdown. --- modules/tools/lsp/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/tools/lsp/config.el b/modules/tools/lsp/config.el index 012a42922..18a0e1460 100644 --- a/modules/tools/lsp/config.el +++ b/modules/tools/lsp/config.el @@ -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))))