File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ setTimeout(() => {
537
537
}, ${1 : delay})
538
538
```
539
539
540
- #### ` sim⇥ ` setInterval
540
+ #### ` sim⇥ ` setImmediate
541
541
``` js
542
542
setImmediate (() => {
543
543
${0 }
Original file line number Diff line number Diff line change 3
3
"displayName" : " JavaScript standardjs styled snippets" ,
4
4
"publisher" : " capaj" ,
5
5
"icon" : " images/javascript.png" ,
6
- "version" : " 0.1.1 " ,
6
+ "version" : " 0.2.0 " ,
7
7
"description" : " standardjs styled javascript snippets for visual studio code" ,
8
8
"repository" : {
9
9
"type" : " git" ,
Original file line number Diff line number Diff line change 257
257
},
258
258
"const statement from destructuring" : {
259
259
"prefix" : " cd" ,
260
- "body" : " const {${1:name}} = {2:value}"
260
+ "body" : [
261
+ " const {${1:name}} = ${2:value}" ,
262
+ " $0"
263
+ ]
261
264
},
262
265
"const assignment" : {
263
266
"prefix" : " ca" ,
276
279
"body" : " const ${1:name} = {\n\t ${0}\n }"
277
280
},
278
281
"const array" : {
279
- "prefix" : " ca " ,
282
+ "prefix" : " car " ,
280
283
"body" : " const ${1:name} = [\n\t ${0}\n ]"
281
284
},
282
285
"class" : {
355
358
"prefix" : " wl" ,
356
359
"body" : " while (${1:condition}) {\n\t ${0}\n }"
357
360
},
361
+ "throw new Error" : {
362
+ "prefix" : " tn" ,
363
+ "body" : " throw new ${0:error}"
364
+ }
358
365
"try/catch" : {
359
366
"prefix" : " tc" ,
360
367
"body" : " try {\n\t ${0}\n } catch (${1:err}) {\n\t\n }"
You can’t perform that action at this time.
0 commit comments