I have a library function x which is used in many places in my code. I would like to replace all of those calls with calls to my-x-wrapper , adding the relevant namespace to my ns :require as necessary. It's not quite an lsp-rename because I don't control the definition of x. Is there a way to do this with lsp or do I need to break out rewrite-clj?
I think LSP would be in a good place to support this, if it's not supported right now, similar to rename. Maybe something named as "replace call" or "replace reference" or whatever. It's would be a useful feature imo.
interesting, sounds like a good code action "Replace call" indeed, feel free to open a issue about it, using examples if possible
@ericdallo I was thinking "replace reference" may be better since not all vars are used in calls, like just (map foo/bar ...) or even {:fn foo/bar} ?
got it makes sense