Add extends of type parameter as type only location for completions

Fixes #28511
This commit is contained in:
Sheetal Nandi
2019-03-13 15:22:33 -07:00
parent 4e0514db0e
commit 526eda8f18
2 changed files with 4 additions and 1 deletions

View File

@@ -1129,6 +1129,9 @@ namespace ts.Completions {
case SyntaxKind.AsKeyword:
return parentKind === SyntaxKind.AsExpression;
case SyntaxKind.ExtendsKeyword:
return parentKind === SyntaxKind.TypeParameter;
}
}
return false;