mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-25 06:17:34 +00:00
Do use eglot-connect-timeout if eglot-sync-connect is t
Reported by Eli Zaretskii <eliz@gnu.org> * eglot.el (eglot--connect): Use eglot-connect-timeout in the case eglot-sync-connect is t.
This commit is contained in:
parent
4071eaf8ad
commit
eb9d6281b5
1 changed files with 2 additions and 1 deletions
|
|
@ -1282,7 +1282,8 @@ in project `%s'."
|
|||
(cond ((numberp eglot-sync-connect)
|
||||
(accept-process-output nil eglot-sync-connect))
|
||||
(eglot-sync-connect
|
||||
(while t (accept-process-output nil 30)))))))
|
||||
(while t (accept-process-output
|
||||
nil eglot-connect-timeout)))))))
|
||||
(pcase retval
|
||||
(`(error . ,msg) (eglot--error msg))
|
||||
(`nil (eglot--message "Waiting in background for server `%s'"
|
||||
|
|
|
|||
Loading…
Reference in a new issue