Function: eglot--count-file-watches

eglot--count-file-watches is a byte-compiled function defined in eglot.el.gz.

Signature

(eglot--count-file-watches)

Documentation

Count total file watches across all Eglot servers.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot--count-file-watches ()
  "Count total file watches across all Eglot servers."
  (let ((count 0))
    (maphash (lambda (_proj servers)
               (dolist (server servers)
                 (maphash (lambda (_id descs)
                            (cl-incf count (length descs)))
                          (eglot--file-watches server))))
             eglot--servers-by-project)
    count))