Add newpromise snippets in javascript (#148755)

pull/148796/head^2
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
1 changed files with 9 additions and 0 deletions

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"
}
}