Fork me on GitHub
#calva
<
2023-06-04
>
phill17:06:29

I wanted to find the (println...) instances in my 3-file program, so I pressed the magnifier and typed 'print'. But it found 850 things throughout all of Clojure. (The files cited by search results were in .clj-kondo/.cache/v1/clj.) I closed and reopened VS Code and tried again; same result. How can I prevent that and just search my own project?

seancorfield17:06:17

Is .clj-kondo/.cache in your .gitignore file?

🎯 1
phill17:06:50

I did not have a .gitignore, so I made one, and to be sure of its syntax I used 'git add' and it did not add anything from the .clj-kondo directory. But the VS Code magnifier still finds 850 things in Clojure itself.

Bob B17:06:57

one option would be opening the breadcrumb-y thing in the search window and using the include and/or exclude fields to narrow down the scope of the search

🙂 1
phill18:06:56

VS Code's settings says Search:Exclude encompasses Files:Exclude which in turn builds on .gitignore, so I suppose by opening the project folder before making .gitignore I may have missed the bus. But adding patterns in Settings helps:

pez18:06:48

You probably want to still find things in .clj-kondo/config.edn. I’d limit the exclude to the .cache directory. Same for .lsp.

☝️ 2