Skip to content

Commit c7d4337

Browse files
committed
Don't display the current ns in the connection info
1 parent c739070 commit c7d4337

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

cider-interaction.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,8 @@ Signal an error if it is not supported."
309309
Info contains project name, current REPL namespace, host:port
310310
endpoint and Clojure version."
311311
(with-current-buffer (get-buffer connection-buffer)
312-
(format "Active nREPL connection: %s:%s, %s:%s (Java %s, Clojure %s, nREPL %s)"
312+
(format "Active nREPL connection: %s@%s:%s (Java %s, Clojure %s, nREPL %s)"
313313
(or (nrepl--project-name nrepl-project-dir) "<no project>")
314-
cider-buffer-ns
315314
(car nrepl-endpoint)
316315
(cadr nrepl-endpoint)
317316
(cider--java-version)

test/cider-tests.el

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,19 +152,17 @@
152152
(cider--nrepl-version () "0.2.1"))
153153
(setq-local nrepl-endpoint '("localhost" 4005))
154154
(setq-local nrepl-project-dir "proj")
155-
(setq-local cider-buffer-ns "some-ns")
156155
(should (string= (cider--connection-info (buffer-name (current-buffer)))
157-
"Active nREPL connection: proj:some-ns, localhost:4005 (Java 1.7, Clojure 1.5.1, nREPL 0.2.1)")))))
156+
"Active nREPL connection: proj@localhost:4005 (Java 1.7, Clojure 1.5.1, nREPL 0.2.1)")))))
158157

159158
(ert-deftest test-cider-current-connection-info-no-project ()
160159
(with-temp-buffer
161160
(noflet ((cider--java-version () "1.7")
162161
(cider--clojure-version () "1.5.1")
163162
(cider--nrepl-version () "0.2.1"))
164163
(setq-local nrepl-endpoint '("localhost" 4005))
165-
(setq-local cider-buffer-ns "some-ns")
166164
(should (string= (cider--connection-info (buffer-name (current-buffer)))
167-
"Active nREPL connection: <no project>:some-ns, localhost:4005 (Java 1.7, Clojure 1.5.1, nREPL 0.2.1)")))))
165+
"Active nREPL connection: <no project>@localhost:4005 (Java 1.7, Clojure 1.5.1, nREPL 0.2.1)")))))
168166

169167
(ert-deftest test-nrepl-close ()
170168
(let ((connections (nrepl-connection-buffers)))

0 commit comments

Comments
 (0)