Function: eglot--list-connections-entries

eglot--list-connections-entries is a byte-compiled function defined in eglot.el.gz.

Signature

(eglot--list-connections-entries)

Documentation

Compute tabulated-list-entries for the connections list buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot--list-connections-entries ()
  "Compute `tabulated-list-entries' for the connections list buffer."
  (mapcar
   (lambda (server)
     (list server
           `[,(eglot--server-name server)
             ,(eglot-project-nickname server)
             ,(format "%s" (length (eglot--managed-buffers server)))
             ,(mapconcat #'symbol-name
                         (eglot--major-modes server)
                         ", ")
             ,(let ((c (process-command
                        (jsonrpc--process server))))
                (if (consp c) (mapconcat #'identity c " ")
                  "network"))]))
   (cl-reduce #'append
              (hash-table-values eglot--servers-by-project))))