Closed ReDrUm closed 6 years ago
This is WAI - it's based on the behavior of the underlying formatter: https://prettier.io/docs/en/options.html#range which says that the entire statement containing the modified lines is formatted.
The range will extend: Backwards to the start of the first line containing the selected statement. Forwards to the end of the selected statement
Ok, thanks.
Hi,
Currently it's bleeding reformatting outside the staged lines. It appears to bleed out into the containing block. Is this expected? Perhaps out of necessity to determine nesting indentation?
Original:
Expectation:
Output from precise-commits (bleeds out into block level reformatting):
Based on #7 Is the expectation that the developer needs to choose to stage only the reformatted lines they modified themselves in the prior commit and discards the rest of the formatting changes? Or should it not be bleeding outside of staged lines?
Cheers :)