Skip to content

Commit 5f705b0

Browse files
yuhan0bbatsov
authored andcommitted
Use tooling-eval in cider-repl-set-ns
to avoid overwriting the last evaled result
1 parent 0cfe341 commit 5f705b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cider-repl.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,9 +1229,9 @@ command will prompt for the name of the namespace to switch to."
12291229
;; NOTE: `require' and `in-ns' are special forms in ClojureScript.
12301230
;; That's why we eval them separately instead of combining them with `do'.
12311231
(when cider-repl-require-ns-on-set
1232-
(cider-nrepl-sync-request:eval (format "(require '%s)" ns) connection))
1233-
(cider-nrepl-request:eval (format "(in-ns '%s)" ns)
1234-
(cider-repl-switch-ns-handler connection)))))
1232+
(cider-sync-tooling-eval (format "(require '%s)" ns) nil connection))
1233+
(cider-tooling-eval (format "(in-ns '%s)" ns)
1234+
(cider-repl-switch-ns-handler connection)))))
12351235

12361236

12371237
;;; Location References

0 commit comments

Comments
 (0)