Skip to content

Commit 84cdc63

Browse files
committed
Merge angle-bracket fix
1 parent 7608dc2 commit 84cdc63

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/services/completions.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,13 +1249,11 @@ namespace ts.Completions {
12491249
return parentKind === SyntaxKind.AsExpression;
12501250

12511251
case SyntaxKind.LessThanToken:
1252-
return parentKind === SyntaxKind.TypeReference;
1252+
return parentKind === SyntaxKind.TypeReference ||
1253+
parentKind === SyntaxKind.TypeAssertionExpression;
12531254

12541255
case SyntaxKind.ExtendsKeyword:
12551256
return parentKind === SyntaxKind.TypeParameter;
1256-
1257-
case SyntaxKind.LessThanToken:
1258-
return parentKind === SyntaxKind.TypeAssertionExpression;
12591257
}
12601258
}
12611259
return false;

0 commit comments

Comments
 (0)