-
Notifications
You must be signed in to change notification settings - Fork 0
/
snippets.json
102 lines (102 loc) · 2.97 KB
/
snippets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
// From: https://github.com/ember-cli/ember-rfc176-data
// ------------------------------
// Imports: getters/setters
// ------------------------------
"Import Getters/Setters": {
"prefix": "imp e getset",
"body": [
"import { ${1:get,} ${2:getProperties,} ${3:set,} ${4:setProperties} } from '@ember/object';"
],
"description": "Imports getters and setters from @ember/object"
},
"Import Getters": {
"prefix": "imp e get",
"body": [
"import { ${1:get,} ${2:getProperties} } from '@ember/object';"
],
"description": "Imports getters only from @ember/object"
},
"Import Setters": {
"prefix": "imp e set",
"body": [
"import { ${1:set,} ${2:setProperties} } from '@ember/object';"
],
"description": "Imports setters only from @ember/object"
},
// ------------------------------
// Imports: services
// ------------------------------
"Import inject as service": {
"prefix": "imp e service",
"body": [
"import { inject as service } from '@ember/service';"
],
"description": "Imports `inject as service` from @ember/service"
},
// ------------------------------
// Imports: computeds
// ------------------------------
"Import Computed": {
"prefix": "imp e computed",
"body": [
"import { computed } from '@ember/object';"
],
"description": "Imports `computed` from @ember/object"
},
"Import Frequent Computeds": {
"prefix": "imp e computed all",
"body": [
"import { ${1:alias,} ${2:readOnly,} ${3:and,} ${4:bool} } from '@ember/object/computed';"
],
"description": "Imports frequently used computed modules"
},
"Import Computed ReadOnly": {
"prefix": "imp e computed readonly",
"body": [
"import { readOnly } from '@ember/object/computed';"
],
"description": "Imports `readOnly` from @ember/object/computed"
},
"Import Alias": {
"prefix": "imp e computed alias",
"body": [
"import { alias } from '@ember/object/computed';"
],
"description": "Imports `alis` from @ember/object/computed"
},
// ------------------------------
// Imports: run loop
// ------------------------------
"Import Frequent RunLoop": {
"prefix": "imp e runloop",
"body": [
"import { ${1:bind}, ${2:later}, ${3:run} } from '@ember/runloop';"
],
"description": "Imports frequently used runloop modules"
},
// ------------------------------
// Imports: ember-concurrency
// ------------------------------
"Import Frequent Concurrency": {
"prefix": "imp e concurrency",
"body": [
"import { ${1:task}, ${2:timeout} } from 'ember-concurrency';"
],
"description": "Imports frequently used ember-concurrency modules"
},
"Import Concurrency Task": {
"prefix": "imp e concurrency task",
"body": [
"import { task } from 'ember-concurrency';"
],
"description": "Imports `task` from ember-concurrency"
},
"Import Concurrency Timeout": {
"prefix": "imp e concurrency timeout",
"body": [
"import { timeout } from 'ember-concurrency';"
],
"description": "Imports `timeout` from ember-concurrency"
}
}