(let ((current-process (eglot--current-process)))
(when (and current-process
(process-live-p current-process))
+ (eglot--message "Asking current process to terminate first")
(eglot-quit-server current-process 'sync)))
(let* ((short-name (file-name-base
(directory-file-name
(format "\n-----------------------------------\n"))))
(eglot--protocol-initialize proc interactive))))))
-
(defun eglot--process-sentinel (process change)
(with-current-buffer (process-buffer process)
(eglot--debug "Process state changed to %s" change)
\f
;;; Requests
-;;;
-
+;;;
(defun eglot--protocol-initialize (process interactive)
(eglot--request
process
\f
;;; Mode line
;;;
-
-
(defface eglot-mode-line
'((t (:inherit font-lock-constant-face :weight bold)))
"Face for package-name in EGLOT's mode line."