Function: claude-code-ide-diagnostics-get-all

claude-code-ide-diagnostics-get-all is a natively compiled function defined in claude-code-ide-diagnostics.el.

Signature

(claude-code-ide-diagnostics-get-all BUFFER)

Documentation

Get diagnostics for BUFFER using configured backend.

Returns diagnostics in VS Code format.

Source Code

;; Defined in /nix/store/yjvbhwl7p6zrbw9xlnni7y4hra8sa3pl-emacs-packages-deps/share/emacs/site-lisp/claude-code-ide-diagnostics.el
(defun claude-code-ide-diagnostics-get-all (buffer)
  "Get diagnostics for BUFFER using configured backend.
Returns diagnostics in VS Code format."
  (let ((backend claude-code-ide-diagnostics-backend))
    ;; Handle auto detection
    (when (eq backend 'auto)
      (setq backend
            (cond
             ((and (featurep 'flycheck)
                   (with-current-buffer buffer
                     (bound-and-true-p flycheck-mode)))
              'flycheck)
             ((and (featurep 'flymake)
                   (with-current-buffer buffer
                     (bound-and-true-p flymake-mode)))
              'flymake)
             (t nil))))
    ;; Get diagnostics based on backend
    (or (vconcat
         (pcase backend
           ('flycheck (claude-code-ide-diagnostics--get-flycheck-diagnostics buffer))
           ('flymake (claude-code-ide-diagnostics--get-flymake-diagnostics buffer))
           (_ nil)))
        [])))