Ordered fns of a message that return a deref-able ClojureScript compiler env for the session, or nil. First non-nil wins.
Piggieback is tried first so existing setups behave exactly as before; the shadow-cljs provider is a fallback for a pure shadow setup that doesn't load piggieback. New backends (figwheel, weasel, ...) plug in here. Rebindable for testing.
Ordered fns of a message that return a deref-able ClojureScript compiler env for the session, or nil. First non-nil wins. Piggieback is tried first so existing setups behave exactly as before; the shadow-cljs provider is a fallback for a pure shadow setup that doesn't load piggieback. New backends (figwheel, weasel, ...) plug in here. Rebindable for testing.
(cljs-response-value response)Returns the :value slot of an eval response from piggieback as a Clojure value.
Returns the :value slot of an eval response from piggieback as a Clojure value.
(expects-piggieback descriptor)Deprecated: returns the descriptor unchanged.
Deprecated: returns the descriptor unchanged.
(grab-cljs-env msg)Returns the ClojureScript compiler environment for the session's running REPL (piggieback or shadow-cljs), or nil when no ClojureScript REPL is active.
Returns the ClojureScript compiler environment for the session's running REPL (piggieback or shadow-cljs), or nil when no ClojureScript REPL is active.
(maybe-add-piggieback coll)If piggieback is loaded, conj piggieback mw var to the provided collection.
If piggieback is loaded, conj piggieback mw var to the provided collection.
(requires-piggieback descriptor)Deprecated: returns the descriptor unchanged.
Deprecated: returns the descriptor unchanged.
(respond-clojure-only {:keys [op] :as msg})Replies to msg signaling that its op is Clojure-only and isn't available
while a ClojureScript REPL is active, then short-circuits the middleware. Lets
the client surface a clear message instead of a confusing failure or a
JVM-only result. See clojure-emacs/cider#2198.
Replies to `msg` signaling that its op is Clojure-only and isn't available while a ClojureScript REPL is active, then short-circuits the middleware. Lets the client surface a clear message instead of a confusing failure or a JVM-only result. See clojure-emacs/cider#2198.
(response-value msg response)Returns the :value slot of an eval response as a Clojure value, reading the slot if necessary (piggieback 0.2.x).
Returns the :value slot of an eval response as a Clojure value, reading the slot if necessary (piggieback 0.2.x).
(try-resolve-piggieback)If piggieback is loaded, return #'cider.piggieback/wrap-cljs-repl, nil
otherwise.
If piggieback is loaded, return `#'cider.piggieback/wrap-cljs-repl`, nil otherwise.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |