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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,5 +190,14 @@
"console.error($1);"
],
"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"
}
}