Skip to content

Commit ab2d066

Browse files
committed
Add scittle to runtime versions
1 parent dc58ed1 commit ab2d066

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
- Introduces Timbre compatibility for [CIDER Log Mode](https://docs.cider.mx/cider/debugging/logging.html).
3434
- Fixes JS completions for nested objects.
3535
- Bundles other fixes and reliability improvements.
36+
- Fix scittle jack in when using `cider-jack-in-clj` ()
3637

3738
## 1.12.0 (2023-11-24)
3839

cider-connection.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ See `cider-connection-capabilities'."
347347
('clojure '(clojure jvm-compilation-errors))
348348
('babashka '(babashka jvm-compilation-errors))
349349
('nbb '(cljs))
350+
('scittle '(cljs))
350351
(_ '()))
351352
(when
352353
(eq cider-repl-type 'cljs)
@@ -457,12 +458,19 @@ But helps us know if this is a nbb repl, or not."
457458
(when nrepl-versions
458459
(nrepl-dict-get nrepl-versions "nbb-nrepl"))))
459460

461+
(defun cider--scittle-nrepl-version ()
462+
"Likewise for scittle. See `cider--nbb-nrepl-version'."
463+
(with-current-buffer (cider-current-repl)
464+
(when nrepl-versions
465+
(nrepl-dict-get nrepl-versions "scittle-nrepl"))))
466+
460467
(defun cider-runtime ()
461468
"Return the runtime of the nREPl server."
462469
(cond
463470
((cider--clojure-version) 'clojure)
464471
((cider--babashka-version) 'babashka)
465472
((cider--nbb-nrepl-version) 'nbb)
473+
((cider--scittle-nrepl-version) 'scittle)
466474
(t 'generic)))
467475

468476
(defun cider-runtime-clojure-p ()

0 commit comments

Comments
 (0)