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)))))