From ee43c18fb989cdcf1e90eb0366e8f6ead22f03dd Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Mon, 23 Oct 2017 23:33:18 -0400 Subject: [PATCH] Tweak 1.5 --- src/services/formatting/formatting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/formatting/formatting.ts b/src/services/formatting/formatting.ts index a0cc61402ecb5..9d909f84b668e 100644 --- a/src/services/formatting/formatting.ts +++ b/src/services/formatting/formatting.ts @@ -1134,7 +1134,7 @@ namespace ts.formatting { // exit early if we on different lines and rule cannot change number of newlines // if line1 and line2 are on subsequent lines then no edits are required - ok to exit // if line1 and line2 are separated with more than one newline - ok to exit since we cannot delete extra new lines - if (rule.Flag !== RuleFlags.CanDeleteNewLines && previousStartLine !== currentStartLine) { + if (rule.Flag !== RuleFlags.CanDeleteNewLines && previousEndLine !== currentStartLine) { return; }