Skip to content

Commit

Permalink
Update typescript.code-snippets (#98521)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works authored May 27, 2020
1 parent a2bc061 commit ece530a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions extensions/typescript-basics/snippets/typescript.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"Throw Exception": {
"prefix": "throw",
"body": [
"throw \"$1\";",
"throw new Error(\"$1\");",
"$0"
],
"description": "Throw Exception"
Expand Down Expand Up @@ -167,7 +167,16 @@
"}"
],
"description": "For-Of Loop"
},
},
"For-Await-Of Loop": {
"prefix": "forawaitof",
"body": [
"for await (const ${1:iterator} of ${2:object}) {",
"\t$0",
"}"
],
"description": "For-Await-Of Loop"
},
"Function Statement": {
"prefix": "function",
"body": [
Expand Down

0 comments on commit ece530a

Please # to comment.