add outlining spans for the tuple type (#38179)

This commit is contained in:
Alexander T authored and GitHub committed 2020-05-05 09:48:33 -07:00
1 parent 2bdc8fdc94
commit d86bdf4e5c
2 files changed
+21

No files matched your search

@@ -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);