Fork me on GitHub
#calva
<
2022-06-25
>
lassemaatta09:06:37

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.

pez09:06:11

Add a new file where?

lassemaatta09:06:40

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.

pez09:06:10

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

lassemaatta09:06:35

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.

pez09:06:46

Iirc, the extension API for opening a text document doesn't actually show it. https://code.visualstudio.com/api/references/vscode-api#workspace.onDidOpenTextDocument 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꞉>   <---

bringe02:06:50

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.