Merge pull request #30384 from Microsoft/completionsInTypeParameter

Add extends of type parameter as type only location for completions
This commit is contained in:
Sheetal Nandi
2019-03-13 18:07:31 -07:00
committed by GitHub
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;