tools/lsp: fix void-function (setf lsp--workspace-shutdown-action)) #1965

This commit is contained in:
Henrik Lissner 2019-10-29 10:44:25 -04:00
parent 4b91f961b6
commit 196c716c74
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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