-
Notifications
You must be signed in to change notification settings - Fork 6
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support wrapping in parameter lists #5
Comments
that would be amazing the way prettier collapses function arguments is currently preventing me from adopting it at work |
I'd be willing to work on it with a little bit of guidance from the author. Seems like most of the logic should be already in place in this plugin, what do you think @electrovir? |
I actually have a branch where this is being worked on, but I haven't given it any attention for a while. Just made some great progress after giving it some more time (after seeing your interest @adrian-gierakowski). Give me a few days and I should be able to get this going! 😁 |
@electrovir amazing, thanks! |
@adrian-gierakowski I've added and released experimental support for this feature in It currently doesn't work on all use cases (for example, in @adrian-gierakowski feel free to poke around and fix these issues if you like, the code in question is in |
Thank you for responding to my request so quickly @electrovir. We gave the new feature a spin at work, but unfortunately ran into many cases where function calls (with single argument) where unnecessarily split into multiple lines. Ideally we’d like the functions which are already on single line to remain so (as long as the line doesn’t exceed printWidth). If that’s not possible then at least it would be good to have an equivalent of multilineArraysWrapThreshold for function calls. Thanks again for your great work! |
Yeah... it's not very good yet, sorry 😕. At the moment I don't have the time to address this further. |
Is it going to support function parameters and arguments?
Originally posted by @monim67 in #4 (comment)
The text was updated successfully, but these errors were encountered: