Fork me on GitHub
#calva
<
2022-11-08
>
k3nj1g08:11:36

Sometimes on clojurescript Go to definition redirects to definition from js/out. Is there any way to exclude js/out?

pez08:11:15

Can you check in the dev console (VS Code Help Menu -> Show Development Tools) if you have any messages about definition lookup going wrong?

bringe04:11:28

I think I’ve seen this kind of thing caused by clojure-lsp before, but that would only be happening if you are not connected to a repl or you’ve changed the default ordering of lookups to prioritize lsp. If you open a file in js/out, I believe clojure-lsp will analyze it, and then lookups can take you there instead of the original source. If this is what’s happening for you, then deleting your .lsp/.cache directory and restarting clojure-lsp (there’s a command for that) may help.