Function: cider--resolve-op-in-request

cider--resolve-op-in-request is a byte-compiled function defined in cider-client.el.

Signature

(cider--resolve-op-in-request REQUEST CONNECTION)

Documentation

Resolve the op in REQUEST to a name supported by CONNECTION.

Falls back to the unprefixed legacy op name when the server doesn't support namespaced ops. Signals a user-error when the op isn't available at all (see cider--ensure-request-op-supported).

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-client.el
(defun cider--resolve-op-in-request (request connection)
  "Resolve the op in REQUEST to a name supported by CONNECTION.
Falls back to the unprefixed legacy op name when the server
doesn't support namespaced ops.  Signals a `user-error' when the op isn't
available at all (see `cider--ensure-request-op-supported')."
  (cider--ensure-request-op-supported request connection)
  (let* ((op (cider-plist-get request "op"))
         (effective (cider--fallback-op op connection)))
    (if (equal op effective)
        request
      (cider-plist-put (copy-sequence request) "op" effective))))