mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 11:24:49 -05:00
fix(60887): Incorrect Formatting on if (a) try {} finally {} (#60898)
This commit is contained in:
@@ -729,6 +729,11 @@ export namespace SmartIndenter {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case SyntaxKind.TryStatement:
|
||||
if (childKind === SyntaxKind.Block) {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
// No explicit rule for given nodes so the result will follow the default value argument
|
||||
return indentByDefault;
|
||||
|
||||
Reference in New Issue
Block a user