Fork me on GitHub

This is more of a vs code question rather than calva, but: Is it possible to add a new file but not automatically open it immediately? I'm trying to repro an elusive lsp issue, which occurs in emacs in a similar situation.


Add a new file where?


When I use the file explorer (the thing on the left side of vscode) to create a new file somewhere in my project, vs code creates the file but then it also automatically opens it. I'd like to add the file but not open it.


In some different way than adding it from the command line?


Yeah. I'm looking into a problem with LSP, where the communication between the client and the server stops working. I can reliably reproduce this under emacs using treemacs (my guess is that this has something to do with the way emacs/treemacs momentarily opens the file but immediately closes it). Adding a new empty file directly from the command line (e.g. something like touch foo.cljs) doesn't cause the problem. Adding a new empty file and immediately opening it (without closing it) doesn't cause the problem. I was trying to figure out if I could somehow reproduce this in vscode/calva, as it's a different lsp client from the lsp-mode in emacs.


Iirc, the extension API for opening a text document doesn't actually show it. Maybe you can use #joyride to re-create the situation. Even if it takes actually showing the document, you could close it quickly.

Ivan Koz17:06:48

Calva question, how could I specify a namespace for nrepl jack-in when using deps.edn alias? Currently it's default: user

; Jack-in done.
clj꞉user꞉>   <---


I think this is more of a Clojure CLI question than a Calva question. I’m not sure if this is possible or not with the CLI.