Function: cider--maybe-get-state-cljs

cider--maybe-get-state-cljs is a byte-compiled function defined in cider-repl.el.

Signature

(cider--maybe-get-state-cljs)

Documentation

Invokes cider/get-state when it's possible to do so.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-repl.el
(defun cider--maybe-get-state-cljs ()
  "Invokes `cider/get-state' when it's possible to do so."
  (when-let* ((conn (cider-current-repl 'cljs)))
    (when (cider-nrepl-op-supported-p "cider/get-state" conn)
      ;; Per-response side effects happen via the global
      ;; `cider-repl--state-handler' on `nrepl-response-handler-functions',
      ;; so this request itself ignores its responses.  Using the
      ;; "unhandled" variant marks the id complete immediately and avoids
      ;; leaking it into `nrepl-pending-requests'.
      (cider-nrepl-send-unhandled-request '("op" "cider/get-state") conn))))