Minor refactors
This commit is contained in:
parent
88b42caab0
commit
b857566239
3 changed files with 7 additions and 6 deletions
|
@ -98,8 +98,8 @@ server getting expensively restarted when reverting buffers."
|
|||
(run-at-time
|
||||
(if (numberp +lsp-defer-shutdown) +lsp-defer-shutdown 3)
|
||||
nil (lambda (workspace)
|
||||
(let ((lsp--cur-workspace workspace))
|
||||
(unless (lsp--workspace-buffers lsp--cur-workspace)
|
||||
(with-lsp-workspace workspace
|
||||
(unless (lsp--workspace-buffers workspace)
|
||||
(let ((lsp-restart 'ignore))
|
||||
(funcall orig-fn))
|
||||
(+lsp-optimization-mode -1))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue