Skip to content

Commit 1146c69

Browse files
author
Armando Aguirre
committed
Fix issue with formatting object literal csharp style
1 parent 3eb66da commit 1146c69

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/services/formatting/smartIndenter.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ namespace ts.formatting {
505505
case SyntaxKind.CallExpression:
506506
case SyntaxKind.NewExpression:
507507
case SyntaxKind.VariableStatement:
508-
case SyntaxKind.VariableDeclaration:
509508
case SyntaxKind.ExportAssignment:
510509
case SyntaxKind.ReturnStatement:
511510
case SyntaxKind.ConditionalExpression:
@@ -528,7 +527,6 @@ namespace ts.formatting {
528527
case SyntaxKind.NamedImports:
529528
case SyntaxKind.ExportSpecifier:
530529
case SyntaxKind.ImportSpecifier:
531-
case SyntaxKind.PropertyAssignment:
532530
case SyntaxKind.PropertyDeclaration:
533531
return true;
534532
}
@@ -541,7 +539,6 @@ namespace ts.formatting {
541539
switch (parent.kind) {
542540
case SyntaxKind.VariableDeclaration:
543541
case SyntaxKind.PropertyAssignment:
544-
case SyntaxKind.ObjectLiteralExpression:
545542
if (!settings.indentMultiLineObjectLiteralBeginningOnBlankLine && sourceFile && childKind === SyntaxKind.ObjectLiteralExpression) {
546543
return rangeIsOnOneLine(sourceFile, child);
547544
}

0 commit comments

Comments
 (0)