Add newpromise snippets in javascript (#148755)

This commit is contained in:
Quan Zhuo
2022-05-06 00:38:07 +08:00
committed by GitHub
parent 08ad5ca882
commit 05043332f8

View File

@@ -190,5 +190,14 @@
"console.error($1);" "console.error($1);"
], ],
"description": "Log error to the console" "description": "Log error to the console"
},
"new Promise": {
"prefix": "newpromise",
"body": [
"new Promise((resolve, reject) => {",
"\t$TM_SELECTED_TEXT$0",
"})"
],
"description": "Create a new Promise"
} }
} }