(defclass eglot-lsp-server (jsonrpc-process-connection)
((project-nickname
:documentation "Short nickname for the associated project."
- :accessor eglot--project-nickname)
+ :accessor eglot--project-nickname
+ :reader eglot-project-nickname)
(major-mode
:documentation "Major mode symbol."
:accessor eglot--major-mode)
(or (plist-get serverInfo :name)
(jsonrpc-name server))
managed-major-mode
- (eglot--project-nickname server))
+ (eglot-project-nickname server))
(when tag (throw tag t))))
:timeout eglot-connect-timeout
:error-fn (eglot--lambda ((ResponseError) code message)
being hash-values of eglot--servers-by-project
append servers))
(name (lambda (srv)
- (format "%s/%s" (eglot--project-nickname srv)
+ (format "%s/%s" (eglot-project-nickname srv)
(eglot--major-mode srv)))))
(cond ((null servers)
(eglot--error "No servers!"))
(defun eglot--mode-line-format ()
"Compose the EGLOT's mode-line."
(pcase-let* ((server (eglot-current-server))
- (nick (and server (eglot--project-nickname server)))
+ (nick (and server (eglot-project-nickname server)))
(pending (and server (hash-table-count
(jsonrpc--request-continuations server))))
(`(,_id ,doing ,done-p ,_detail) (and server (eglot--spinner server)))