From 1146c690f83176bacb37aa39090d7ebe0c12df9b Mon Sep 17 00:00:00 2001 From: Armando Aguirre Date: Fri, 18 May 2018 16:33:55 -0700 Subject: [PATCH] Fix issue with formatting object literal csharp style --- src/services/formatting/smartIndenter.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/services/formatting/smartIndenter.ts b/src/services/formatting/smartIndenter.ts index a75781b8da0..f71c6108d37 100644 --- a/src/services/formatting/smartIndenter.ts +++ b/src/services/formatting/smartIndenter.ts @@ -505,7 +505,6 @@ namespace ts.formatting { case SyntaxKind.CallExpression: case SyntaxKind.NewExpression: case SyntaxKind.VariableStatement: - case SyntaxKind.VariableDeclaration: case SyntaxKind.ExportAssignment: case SyntaxKind.ReturnStatement: case SyntaxKind.ConditionalExpression: @@ -528,7 +527,6 @@ namespace ts.formatting { case SyntaxKind.NamedImports: case SyntaxKind.ExportSpecifier: case SyntaxKind.ImportSpecifier: - case SyntaxKind.PropertyAssignment: case SyntaxKind.PropertyDeclaration: return true; } @@ -541,7 +539,6 @@ namespace ts.formatting { switch (parent.kind) { case SyntaxKind.VariableDeclaration: case SyntaxKind.PropertyAssignment: - case SyntaxKind.ObjectLiteralExpression: if (!settings.indentMultiLineObjectLiteralBeginningOnBlankLine && sourceFile && childKind === SyntaxKind.ObjectLiteralExpression) { return rangeIsOnOneLine(sourceFile, child); }