mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
add outlining spans for the tuple type (#38179)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user