Don’t suppress completions after yield (#37609)

This commit is contained in:
Andrew Branch
2020-03-25 14:27:47 -08:00
committed by GitHub
parent 4567fc4f1a
commit a04225dbec
3 changed files with 21 additions and 4 deletions

View File

@@ -2159,7 +2159,6 @@ namespace ts.Completions {
case SyntaxKind.ImportKeyword:
case SyntaxKind.LetKeyword:
case SyntaxKind.ConstKeyword:
case SyntaxKind.YieldKeyword:
case SyntaxKind.TypeKeyword: // type htm|
return true;
@@ -2200,7 +2199,6 @@ namespace ts.Completions {
case SyntaxKind.PublicKeyword:
case SyntaxKind.StaticKeyword:
case SyntaxKind.VarKeyword:
case SyntaxKind.YieldKeyword:
return true;
case SyntaxKind.AsyncKeyword:
return isPropertyDeclaration(contextToken.parent);