Fork me on GitHub
#lsp
<
2024-05-31
>
Saket08:05:25

I have added target.* in both :paths-ignore-regex as well as :source-paths-ignore-regex but I still see files included in lsp references. What am I missing here?

; .lsp/config.edn
{...
 :paths-ignore-regex ["target.*" "resources.*" "yarn-webpack.*" "dev-resources.*"]
 :source-paths-ignore-regex ["target.*" "resources.*" "yarn-webpack.*" "dev-resources.*"]
 ...}

ericdallo12:05:49

are you sure you don't have any target file opened in your editor? otherwise when opening, clojure-lsp will lint that file (maybe we should improve it and don't lint if we check it's on those ignore settings)

ericdallo12:05:00

do you have any repo I can try myself?