8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 617e511 + 4a81dde commit 2e47e2eCopy full SHA for 2e47e2e
src/services/formatting/smartIndenter.ts
@@ -204,7 +204,7 @@ namespace ts.formatting {
204
// - parent is SourceFile - by default immediate children of SourceFile are not indented except when user indents them manually
205
// - parent and child are not on the same line
206
let useActualIndentation =
207
- (isDeclaration(current) || isStatement(current)) &&
+ (isDeclaration(current) || isStatementButNotDeclaration(current)) &&
208
(parent.kind === SyntaxKind.SourceFile || !parentAndChildShareLine);
209
210
if (!useActualIndentation) {
0 commit comments