File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -491,11 +491,17 @@ module ts.formatting {
491
491
492
492
case SyntaxKind . ArrayLiteralExpression :
493
493
case SyntaxKind . ArrayBindingPattern :
494
- case SyntaxKind . IndexSignature :
495
494
case SyntaxKind . ComputedPropertyName :
496
495
case SyntaxKind . TupleType :
497
496
return nodeEndsWith ( n , SyntaxKind . CloseBracketToken , sourceFile ) ;
498
497
498
+ case SyntaxKind . IndexSignature :
499
+ if ( ( < IndexSignatureDeclaration > n ) . type ) {
500
+ return isCompletedNode ( ( < IndexSignatureDeclaration > n ) . type , sourceFile ) ;
501
+ }
502
+
503
+ return hasChildOfKind ( n , SyntaxKind . CloseBracketToken , sourceFile ) ;
504
+
499
505
case SyntaxKind . CaseClause :
500
506
case SyntaxKind . DefaultClause :
501
507
// there is no such thing as terminator token for CaseClause/DefaultClause so for simplicitly always consider them non-completed
You can’t perform that action at this time.
0 commit comments