diff --git a/extensions/javascript/snippets/javascript.code-snippets b/extensions/javascript/snippets/javascript.code-snippets index 47a6f40d202..9448fd140d9 100644 --- a/extensions/javascript/snippets/javascript.code-snippets +++ b/extensions/javascript/snippets/javascript.code-snippets @@ -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" } }