lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
bringe 2021-01-13T00:44:49.260300Z

Is there a way to make clojure-lsp not send a specific file to clj-kondo for linting? Specifically, with Calva, when using kondo through clojure-lsp, I get this diagnostics error.

ericdallo 2021-01-13T00:45:51.261700Z

Hum, I don't think so, maybe we could add a ignore-lint-file option

bringe 2021-01-13T00:47:21.261900Z

Maybe that is needed, not sure. Currently in Calva, which uses the kondo extension, we create the .clj-kondo directory in the .calva/output-window directory and replace the linters in the kondo config with an empty map, which seems to make it ignore the output file.

bringe 2021-01-13T00:47:52.262100Z

But with this change I'm working on, clojure-lsp creates the kondo directory at the top, so doing the same there results in no linting at all

ericdallo 2021-01-13T01:01:15.262300Z

Oh it could work for kondo diagnostics indeed, but we have few clojure-lsp custom diagnostics yet, but I don't think it'd be a problem