We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e961fa6 commit ee43c18Copy full SHA for ee43c18
src/services/formatting/formatting.ts
@@ -1134,7 +1134,7 @@ namespace ts.formatting {
1134
// exit early if we on different lines and rule cannot change number of newlines
1135
// if line1 and line2 are on subsequent lines then no edits are required - ok to exit
1136
// if line1 and line2 are separated with more than one newline - ok to exit since we cannot delete extra new lines
1137
- if (rule.Flag !== RuleFlags.CanDeleteNewLines && previousStartLine !== currentStartLine) {
+ if (rule.Flag !== RuleFlags.CanDeleteNewLines && previousEndLine !== currentStartLine) {
1138
return;
1139
}
1140
0 commit comments