Calva: Feature Request: Find references/usage

Created on 9 Jun 2019  路  3Comments  路  Source: BetterThanTomorrow/calva

Implement the Find References API.

Without it we are left with crude text search, Find in Project.

For implementing this. Probably refactor-nrepl is where to turn for the heavy lifting.

enhancement help wanted static-analysis

Most helpful comment

I was looking for this feature request under "Show Usages" or "Find Usages". Those are the terms used in Cursive. This comment should help the next me to find this issue.

All 3 comments

I was looking for this feature request under "Show Usages" or "Find Usages". Those are the terms used in Cursive. This comment should help the next me to find this issue.

This project seems promising to implement basic refactoring features: https://github.com/snoe/clojure-lsp

Thanks for the link @matdurand. clojure-lsp is something we've been wanting to add for some time. It involves a bit more work than adding refactor-nrepl. There's a PR where this was started at #572. This is something I look forward to the most for Calva's future.

@pez Do you think it would be worth using clojure-lsp for finding references/usages instead of refactor-nrepl? I know refactor-nrepl would be easier to add, but I feel that if we plan to add clojure-lsp, we'd only duplicate work by adding these features with refactor-nrepl, then changing to clojure-lsp later.

Was this page helpful?
0 / 5 - 0 ratings