From 4a81dde12b59e28cee552b25ec61f025fb8f4d5a Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 23 Feb 2016 10:55:43 -0800 Subject: [PATCH] Fixed issue with smartindenter --- src/services/formatting/smartIndenter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/formatting/smartIndenter.ts b/src/services/formatting/smartIndenter.ts index 248d81cb07..e56e2805c3 100644 --- a/src/services/formatting/smartIndenter.ts +++ b/src/services/formatting/smartIndenter.ts @@ -204,7 +204,7 @@ namespace ts.formatting { // - parent is SourceFile - by default immediate children of SourceFile are not indented except when user indents them manually // - parent and child are not on the same line let useActualIndentation = - (isDeclaration(current) || isStatement(current)) && + (isDeclaration(current) || isStatementButNotDeclaration(current)) && (parent.kind === SyntaxKind.SourceFile || !parentAndChildShareLine); if (!useActualIndentation) {