Add newpromise snippets in javascript (#148755)
parent
08ad5ca882
commit
05043332f8
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue