Skip to content

Commit 1451997

Browse files
committed
fixed readme, fixed cd snippet
1 parent 898afba commit 1451997

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ setTimeout(() => {
537537
}, ${1:delay})
538538
```
539539

540-
#### `sim⇥` setInterval
540+
#### `sim⇥` setImmediate
541541
```js
542542
setImmediate(() => {
543543
${0}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "JavaScript standardjs styled snippets",
44
"publisher": "capaj",
55
"icon": "images/javascript.png",
6-
"version": "0.1.1",
6+
"version": "0.2.0",
77
"description": "standardjs styled javascript snippets for visual studio code",
88
"repository": {
99
"type": "git",

snippets/snippets.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,10 @@
257257
},
258258
"const statement from destructuring": {
259259
"prefix": "cd",
260-
"body": "const {${1:name}} = {2:value}"
260+
"body": [
261+
"const {${1:name}} = ${2:value}",
262+
"$0"
263+
]
261264
},
262265
"const assignment": {
263266
"prefix": "ca",
@@ -276,7 +279,7 @@
276279
"body": "const ${1:name} = {\n\t${0}\n}"
277280
},
278281
"const array": {
279-
"prefix": "ca",
282+
"prefix": "car",
280283
"body": "const ${1:name} = [\n\t${0}\n]"
281284
},
282285
"class": {
@@ -355,6 +358,10 @@
355358
"prefix": "wl",
356359
"body": "while (${1:condition}) {\n\t${0}\n}"
357360
},
361+
"throw new Error": {
362+
"prefix": "tn",
363+
"body": "throw new ${0:error}"
364+
}
358365
"try/catch": {
359366
"prefix": "tc",
360367
"body": "try {\n\t${0}\n} catch (${1:err}) {\n\t\n}"

0 commit comments

Comments
 (0)