mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-05 15:36:22 +01:00
Update typescript.code-snippets (#98521)
This commit is contained in:
1 parent
a2bc061bc6
commit
ece530adcf
1 file changed
+11
-2
@@ -123,7 +123,7 @@
|
||||
"Throw Exception": {
|
||||
"prefix": "throw",
|
||||
"body": [
|
||||
"throw \"$1\";",
|
||||
"throw new Error(\"$1\");",
|
||||
"$0"
|
||||
],
|
||||
"description": "Throw Exception"
|
||||
@@ -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": [
|
||||
|
||||
Reference in new issue
Block a user