mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
Add newpromise snippets in javascript (#148755)
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user