Closed somanythings closed 3 years ago
I see two issues with how plugin handled the comment in that fragment.
I will try to investigate during the week how the fix looks like.
Due to the issues in other project I need to park this issue for few weeks.
At. 1 Fixed . Also fixed for lists: ( object+ ) - the same issue.
At 2. Formatting now will detect if comment starts at the beginning of a line (usually a effect of commenting a line by Ctrl-/ ) and does not indent such comment. Otherwise the comment is indented as usual. I wanted reproduce here similar behavior to Java.
Will be part of next release.
if i have something like this:
after applying formatting, i get
so the closing ]; is pulled up, behind the comment, breaking the file.