-
Notifications
You must be signed in to change notification settings - Fork 251
/
Copy pathal.json
213 lines (213 loc) · 6.01 KB
/
al.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
{
"Snippet: Trigger": {
"prefix": "ttrigger",
"body": [
"trigger ${1:OnWhat}(${2})",
"var",
"\t${3:myInt}: ${4:Integer};",
"begin",
"\t$0",
"end;"
],
"description": "Snippet: Trigger"
},
"Snippet: Procedure": {
"prefix": "tprocedure",
"body": [
"${1:local} procedure ${2:MyProcedure}(${3})",
"var",
"\t${4:myInt}: ${5:Integer};",
"begin",
"\t$0",
"end;"
],
"description": "Snippet: Procedure"
},
"Snippet: Assert Error": {
"prefix": "tassert",
"body": [
"assertError ${1:AssertStatement};",
"if ${2:getLastErrorText} <> ${3:ErrorText} then",
"\terror('${4:Unexpected error: %1}', ${0:getLastErrorText});"
],
"description": "Snippet: Assert Error"
},
"Snippet: With Do": {
"prefix": "twithdo",
"body": [
"with ${1:RecordName} do begin",
"\t$0",
"end;"
],
"description": "Snippet: With Do"
},
"Snippet: If": {
"prefix": "tif",
"body": [
"if ${1:BooleanExpression} then begin",
"\t$0",
"end;"
],
"description": "Snippet: If"
},
"Snippet: If Else": {
"prefix": "tifelse",
"body": [
"if ${1:BooleanExpression} then begin",
"\t${2}",
"end else begin",
"\t$0",
"end;"
],
"description": "Snippet: If Else"
},
"Snippet: Case Of": {
"prefix": "tcaseof",
"body": [
"case ${1:Expression} of",
"\t${2:ExpressionOrRange}:",
"\t\t${3}",
"\t${4:ExpressionOrRange}:",
"\t\t$0",
"end;"
],
"description": "Snippet: Case Of"
},
"Snippet: Case Else": {
"prefix": "tcaseelse",
"body": [
"case ${1:Expression} of",
"\t${2:ExpressionOrRange}:",
"\t\t${3}",
"\t${4:ExpressionOrRange}:",
"\t\t${5}",
"else",
"\t$0",
"end;"
],
"description": "Snippet: Case Else"
},
"Snippet: For": {
"prefix": "tfor",
"body": [
"for ${1:ControlVariable} := ${2:StartNumber} to ${3:EndNumber} do begin",
"\t$0",
"end;"
],
"description": "Snippet: For"
},
"Snippet: ForEach": {
"prefix": "tforeach",
"body": [
"foreach ${1:Value} in ${2:EnumerableCollection} do begin",
"\t$0",
"end;"
],
"description": "Snippet: ForEach"
},
"Snippet: While": {
"prefix": "twhile",
"body": [
"while ${1:BooleanExpression} do begin",
"\t$0",
"end;"
],
"description": "Snippet: While"
},
"Snippet: Repeat Until": {
"prefix": "trepeat",
"body": [
"repeat begin",
"\t$0",
"end until ${1:BooleanExpression};"
],
"description": "Snippet: Repeat Until"
},
"Snippet: Event Subscriber": {
"prefix": "teventsub",
"body": [
"[EventSubscriber(ObjectType::${1|Codeunit,Page,Query,Report,Table,XmlPort|}, ${2|Codeunit::,Database::,Page::,Query::,Report::,XmlPort::|}, ${3:OnSomeEvent}, ${4:'ElementName'}, ${5:SkipOnMissingLicense}, ${6:SkipOnMissingPermission})]",
"local procedure ${7:MyProcedure}(${8})",
"begin",
"\t$0",
"end;"
],
"description": "Snippet: Event Subscriber"
},
"Snippet: Integration Event": {
"prefix": "teventint",
"body": [
"[IntegrationEvent(${1:IncludeSender}, false)]",
"local procedure ${0:MyProcedure}()",
"begin",
"end;"
],
"description": "Snippet: Integration Event"
},
"Snippet: Business Event": {
"prefix": "teventbus",
"body": [
"[BusinessEvent(${1:IncludeSender})]",
"local procedure ${0:MyProcedure}()",
"begin",
"end;"
],
"description": "Snippet: Business Event"
},
"Snippet: Internal Event": {
"prefix": "teventinternal",
"body": [
"[InternalEvent(${1:IncludeSender})]",
"local procedure ${0:MyProcedure}()",
"begin",
"end;"
],
"description": "Snippet: Internal Event"
},
"Snippet: External Business Event": {
"prefix": "teventexternal",
"body": [
"[ExternalBusinessEvent(${1:Name}, ${2:DisplayName}, ${3:Description}, ${4:Category}, ${5:Version})]",
"local procedure ${0:MyProcedure}()",
"begin",
"end;"
],
"description": "Snippet: External Business Event"
},
"Snippet: Caption ML": {
"prefix": "tcaptionml",
"body": [
"CaptionML = ENU = '${1:englishText}',",
"\t\t\t${2:languageShortcut} = '${0:languageText}';"
],
"description": "Snippet: Caption ML"
},
"Snippet: Option Caption ML": {
"prefix": "toptioncaptionml",
"body": [
"OptionCaptionML = ENU = '${1:englishText}',",
"\t\t\t${2:languageShortcut} = '${0:languageText}';"
],
"description": "Snippet: Option Caption ML"
},
"Snippet: If Table Empty Else": {
"prefix": "tisemptyelse",
"body": [
"if ${1:Rec}.IsEmpty then begin",
"\t${2}",
"end else begin",
"\t$0",
"end;"
],
"description": "Snippet: If Table Empty Else"
},
"Snippet: If Table Empty": {
"prefix": "tisempty",
"body": [
"if ${1:Rec}.IsEmpty then begin",
"\t$0",
"end;"
],
"description": "Snippet: If Table Empty"
}
}