Conversation
To be more consistent with the other snippets I've added a space in function definitions.
|
Any comments @50Wliu or @lee-dohm ? |
|
Thanks for the suggestion! This is changing a default, so people that are using the current snippets and like them the way they are (or gotten used to them) will have their workflow broken. They'll have to create new snippets to maintain their current workflow. We tend to be very careful around changing the defaults on people, so there is already a high bar here. Regarding consistency, I don't feel there's enough motivation here to justify changing a default. I'll pass it by the team and see if anyone else has any input first though. |
|
Thanks @lee-dohm I understand. Yeah maybe I'm being too OCD :) Let's see if anyone on the team agrees. |
|
Thanks for understanding! We're all pedantic in our own ways 😆 |
|
Hey @lee-dohm I'm guessing I should just close this PR, right? |
|
@PierBover Yes, thank you. My apologies for not getting back to you on it. |
|
Thanks very much for the effort you put in to this @PierBover ❤️ |
To be more consistent with the other snippets in this package I've added a space in some function definitions that lacked it.
For example
if (...) {andwhile (...) {have a space between the keyword and the parenthesis but some function definitions did not and resulted infunction foo() {.This behaviour is inconsistent. For example some function definitions did have the space such as:
Or also:
But not in:
With the new changes all function definitions get the space so the result is
function foo () {andfunction () {.