Function: eca-editor--collect-all-diagnostics
eca-editor--collect-all-diagnostics is a natively compiled function
defined in eca-editor.el.
Signature
(eca-editor--collect-all-diagnostics URI WORKSPACES)
Documentation
Collect diagnostics from all backends for WORKSPACES.
If URI is non-nil, filter to that uri.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-editor.el
(defun eca-editor--collect-all-diagnostics (uri workspaces)
"Collect diagnostics from all backends for WORKSPACES.
If URI is non-nil, filter to that uri."
(let ((diagnostics '()))
;; lsp-mode: workspace-level diagnostics
(when (featurep 'lsp-mode)
(seq-doseq (workspace workspaces)
(setq diagnostics
(append diagnostics
(eca-editor--lsp-mode-diagnostics
uri workspace)))))
;; flycheck: buffer-level, non-LSP buffers only
(when (featurep 'flycheck)
(setq diagnostics
(append diagnostics
(eca-editor--flycheck-diagnostics
uri workspaces))))
;; flymake: for eglot users (when lsp-mode is absent)
(when (and (featurep 'flymake)
(not (featurep 'lsp-mode)))
(seq-doseq (workspace workspaces)
(setq diagnostics
(append diagnostics
(eca-editor--flymake-diagnostics
uri workspace)))))
diagnostics))