8000 Merge branch 'transforms-transformer' into transforms-printer · prmdeveloper/TypeScript@2e47e2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e47e2e

Browse files
committed
Merge branch 'transforms-transformer' into transforms-printer
2 parents 617e511 + 4a81dde commit 2e47e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/formatting/smartIndenter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ namespace ts.formatting {
204204
// - parent is SourceFile - by default immediate children of SourceFile are not indented except when user indents them manually
205205
// - parent and child are not on the same line
206206
let useActualIndentation =
207-
(isDeclaration(current) || isStatement(current)) &&
207+
(isDeclaration(current) || isStatementButNotDeclaration(current)) &&
208208
(parent.kind === SyntaxKind.SourceFile || !parentAndChildShareLine);
209209

210210
if (!useActualIndentation) {

0 commit comments

Comments
 (0)
0