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