Function: eglot--flymake-diagnostics
eglot--flymake-diagnostics is a byte-compiled function defined in
eglot.el.gz.
Signature
(eglot--flymake-diagnostics BEG &optional END)
Documentation
Like flymake-diagnostics, but for Eglot-specific diagnostics.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot--flymake-diagnostics (beg &optional end)
"Like `flymake-diagnostics', but for Eglot-specific diagnostics."
(cl-loop for diag in (flymake-diagnostics beg end)
for data = (flymake-diagnostic-data diag)
for lsp-diag = (alist-get 'eglot-lsp-diag data)
for version = (alist-get 'eglot--doc-version data)
when (and lsp-diag (or (null version)
(= version eglot--docver)))
collect diag))