Skip to content

Commit

Permalink
snippets: Add setInterval snippet (#61351)
Browse files Browse the repository at this point in the history
* snippets: Add setInterval snippet

* fix: typo in prefix
  • Loading branch information
kyranet authored and mjbvz committed Oct 19, 2018
1 parent 2863dd4 commit 7de4798
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions extensions/javascript/snippets/javascript.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@
],
"description": "Set Timeout Function"
},
"Set Interval Function": {
"prefix": "setinterval",
"body": [
"setInterval(() => {",
"\t$0",
"}, ${1:interval});"
],
"description": "Set Interval Function"
},
"Import external module.": {
"prefix": "import statement",
"body": [
Expand Down

0 comments on commit 7de4798

Please sign in to comment.