mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
add outlining spans for the tuple type (#38179)
This commit is contained in:
@@ -201,6 +201,8 @@ namespace ts.OutliningElementsCollector {
|
||||
case SyntaxKind.CaseBlock:
|
||||
case SyntaxKind.TypeLiteral:
|
||||
return spanForNode(n);
|
||||
case SyntaxKind.TupleType:
|
||||
return spanForNode(n, /*autoCollapse*/ false, /*useFullStart*/ !isTupleTypeNode(n.parent), SyntaxKind.OpenBracketToken);
|
||||
case SyntaxKind.CaseClause:
|
||||
case SyntaxKind.DefaultClause:
|
||||
return spanForNodeArray((n as CaseClause | DefaultClause).statements);
|
||||
|
||||
Reference in New Issue
Block a user