Fork me on GitHub

clojure-lsp Released clojure-lsp, the first release supported by clojurists-together gratitude • General ◦ Create .clj-kondo folder if not exists in project root. ◦ Fix exception when `:clojure-lsp/unused-public-var` linter is `:off`. ◦ Bump clj-kondo to `2021.08.07-20210903.210340-28` to fix a false-positive with potemkin. ◦ Bump clj-kondo to `2021.08.07-20210909.131804-29` fixing issues with built-in clj-kondo cache not present on graalvm binaries. ◦ Exclude `cljs.test/deftest` from unused public vars linter. ◦ Migrate default db file from `.lsp/sqlite.db` to `.lsp/.cache/sqlite.db`, this is necessary as in the future we will replace sqlite with other db implementation, for users they just need to consider/gitignore the `.lsp/.cache` folder, this way any next change on db implementations or any other cache will not affect user. ◦ Auto migrate existing `.lsp/sqlite.db` to new `.lsp/.cache/sqlite.db` to avoid unnecessary project re-scan. ◦ Deprecates `:sqlite-db-path` in place of `:cache-path`. • Editor ◦ Fix `didChangeWatchedFiles` to correctly create the file on server, properly change file content and re-scan with clj-kondo, or remove file analysis. This should improve LSP analysis reliability when changing files outside the editor. ◦ Improve completion only showing valid local vars for current cursor. ◦ Improve completion sorting adding priority to each item, showing most used symbols like variables and functions first before other completion items. • API/CLI ◦ New `diagnostics` command, which return all diagnostics found by clojure-lsp (using clj-kondo). Check the API section for more details. Besides a lot of fixes and improvements, clojure-lsp has its `diagnostics` feature available via API/CLI now, making clojure-lsp the only tool that can do most lint tasks in a single tool! • Cleaning namespaces • Formatting namespaces • Lint diagnostics (using clj-kondo)

👍 18
aw_yeah 4
catjam 6