* eglot.el (eglot-request-timeout): New var.
(eglot--request): Use it.
(defface eglot-mode-line
'((t (:inherit font-lock-constant-face :weight bold)))
- "Face for package-name in EGLOT's mode line."
- :group 'eglot)
+ "Face for package-name in EGLOT's mode line.")
+
+(defcustom eglot-request-timeout 10
+ "How many seconds to way for a reply from the server."
+ :type :integer)
\f
;;; Process management
(catch catch-tag
(let ((timeout-timer
(run-with-timer
- 5 nil
+ eglot-request-timeout nil
(if async-p
(lambda ()
(remhash id (eglot--pending-continuations process))