Skip to content

Commit f2d297f

Browse files
committed
Move await keyword to inside of function and test
1 parent 8eefaf4 commit f2d297f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/harness/fourslash.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4775,6 +4775,7 @@ namespace FourSlashInterface {
47754775
"package",
47764776
"yield",
47774777
"async",
4778+
"await",
47784779
].map(keywordEntry);
47794780

47804781
// TODO: many of these are inappropriate to always provide

src/services/completions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@ namespace ts.Completions {
19571957
}
19581958

19591959
function isFunctionLikeBodyKeyword(kind: SyntaxKind) {
1960-
return kind === SyntaxKind.AsyncKeyword || !isContextualKeyword(kind) && !isClassMemberCompletionKeyword(kind);
1960+
return kind === SyntaxKind.AsyncKeyword || SyntaxKind.AwaitKeyword || !isContextualKeyword(kind) && !isClassMemberCompletionKeyword(kind);
19611961
}
19621962

19631963
function keywordForNode(node: Node): SyntaxKind {

0 commit comments

Comments
 (0)