We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eefaf4 commit f2d297fCopy full SHA for f2d297f
src/harness/fourslash.ts
@@ -4775,6 +4775,7 @@ namespace FourSlashInterface {
4775
"package",
4776
"yield",
4777
"async",
4778
+ "await",
4779
].map(keywordEntry);
4780
4781
// TODO: many of these are inappropriate to always provide
src/services/completions.ts
@@ -1957,7 +1957,7 @@ namespace ts.Completions {
1957
}
1958
1959
function isFunctionLikeBodyKeyword(kind: SyntaxKind) {
1960
- return kind === SyntaxKind.AsyncKeyword || !isContextualKeyword(kind) && !isClassMemberCompletionKeyword(kind);
+ return kind === SyntaxKind.AsyncKeyword || SyntaxKind.AwaitKeyword || !isContextualKeyword(kind) && !isClassMemberCompletionKeyword(kind);
1961
1962
1963
function keywordForNode(node: Node): SyntaxKind {
0 commit comments