From c80d546e550e31b344ba5674d99a31549f063e15 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 12 Oct 2020 17:36:02 -0400 Subject: [PATCH] Don't prompt to kill lsp server on cleanup --- modules/tools/lsp/+lsp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/tools/lsp/+lsp.el b/modules/tools/lsp/+lsp.el index 7cca32a17..e548bf032 100644 --- a/modules/tools/lsp/+lsp.el +++ b/modules/tools/lsp/+lsp.el @@ -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)))))