tools/lsp: fix lsp-workspace-restart
This commit is contained in:
parent
9fbfc44f73
commit
f6d3ee5889
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ This can be a single company backend or a list thereof. It can be anything
|
|||
This gives the user a chance to open other project files before the server is
|
||||
auto-killed (which is usually an expensive process)."
|
||||
:around #'lsp--shutdown-workspace
|
||||
(if lsp-keep-workspace-alive
|
||||
(if (or lsp-keep-workspace-alive
|
||||
(eq (lsp--workspace-shutdown-action lsp--cur-workspace)
|
||||
'restart))
|
||||
(funcall orig-fn)
|
||||
(when (timerp +lsp--deferred-shutdown-timer)
|
||||
(cancel-timer +lsp--deferred-shutdown-timer))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue