Don't prompt to kill lsp server on cleanup

This commit is contained in:
Henrik Lissner
2020-10-12 17:36:02 -04:00
parent fdbf68cf3c
commit c80d546e55

View File

@@ -100,7 +100,8 @@ server getting expensively restarted when reverting buffers."
nil (lambda (workspace)
(let ((lsp--cur-workspace workspace))
(unless (lsp--workspace-buffers lsp--cur-workspace)
(funcall orig-fn)
(let ((lsp-restart 'ignore))
(funcall orig-fn))
(+lsp-optimization-mode -1))))
lsp--cur-workspace)))))