Fork me on GitHub
#lsp
<
2022-07-20
>
Noah Bogart03:07:53

refactoring code action idea: i'd love to be able to rearrange the order of arguments in a function definition and have all of the call site arguments move as well. Is this something worth opening a github suggestion issue about?

2
dpsutton03:07:38

I like the idea of that but I suspect the prevalence of threading macros makes this difficult in practice.

🥲 1
dpsutton03:07:10

Another one that might be useful would be to refactor args into a map whose keys are the name of the function parameters

2
Noah Bogart04:07:08

that one would be cool too! the threading macro issue is definitely a challenge

ericdallo11:07:40

Both sounds good ideas, feel free to open issues Yeah, the macro would be a challenge as we would need to parse each reference 's file with rewrite-clj to know if it's inside a macro