Skip to content

Commit c62789e

Browse files
author
Bruce Hauman
committed
improved project-dir addition
1 parent 2576511 commit c62789e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clojure_mcp/nrepl_launcher.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
false))))
218218

219219
(defn add-project-dir [nrepl-args]
220-
(if (:start-nrepl-cmd nrepl-args)
220+
(if (and (:start-nrepl-cmd nrepl-args) (not (:project-dir nrepl-args)))
221221
(assoc nrepl-args :project-dir (System/getProperty "user.dir"))
222222
nrepl-args))
223223

0 commit comments

Comments
 (0)