|
2 | 2 | "Class definition without superclass": { |
3 | 3 | "prefix": "Class", |
4 | 4 | "body": [ |
5 | | - "Class ${1:PackageName.ClassName}", |
| 5 | + "/// ${1:Description}", |
| 6 | + "Class ${2:PackageName.ClassName}", |
6 | 7 | "{", |
7 | 8 | "$0", |
8 | 9 | "}" |
|
11 | 12 | "Class definition with one superclass": { |
12 | 13 | "prefix": "Class", |
13 | 14 | "body": [ |
14 | | - "Class ${1:PackageName.ClassName} Extends ${2|%Persistent,%SerialObject,%RegisteredObject|}", |
| 15 | + "/// ${1:Description}", |
| 16 | + "Class ${2:PackageName.ClassName} Extends ${3|%Persistent,%SerialObject,%RegisteredObject|}", |
15 | 17 | "{", |
16 | 18 | "$0", |
17 | 19 | "}" |
|
20 | 22 | "Class definition with multiple superclasses": { |
21 | 23 | "prefix": "Class", |
22 | 24 | "body": [ |
23 | | - "Class ${1:PackageName.ClassName} Extends (${2|%Persistent,%SerialObject,%RegisteredObject|}, ${3:%XML.Adaptor})", |
| 25 | + "/// ${1:Description}", |
| 26 | + "Class ${2:PackageName.ClassName} Extends (${3|%Persistent,%SerialObject,%RegisteredObject|}, ${4:%XML.Adaptor})", |
24 | 27 | "{", |
25 | 28 | "$0", |
26 | 29 | "}" |
|
29 | 32 | "ClassMethod definition": { |
30 | 33 | "prefix": "ClassMethod", |
31 | 34 | "body": [ |
32 | | - "ClassMethod ${1:MethodName}($2) As ${3:%Status}", |
| 35 | + "/// ${1:Description}", |
| 36 | + "ClassMethod ${2:MethodName}($3) As ${4:%Status}", |
33 | 37 | "{", |
34 | | - "\tSet ${4:sc} = \\$\\$\\$OK", |
| 38 | + "\tSet ${5:sc} = \\$\\$\\$OK", |
35 | 39 | "\t${0:// do something}", |
36 | | - "\tReturn $4", |
| 40 | + "\tReturn $5", |
37 | 41 | "}" |
38 | 42 | ] |
39 | 43 | }, |
40 | 44 | "Method definition": { |
41 | 45 | "prefix": "Method", |
42 | 46 | "body": [ |
43 | | - "Method ${1:MethodName}($2) As ${3:%Status}", |
| 47 | + "/// ${1:Description}", |
| 48 | + "Method ${2:MethodName}($3) As ${4:%Status}", |
44 | 49 | "{", |
45 | | - "\tSet ${4:sc} = \\$\\$\\$OK", |
| 50 | + "\tSet ${5:sc} = \\$\\$\\$OK", |
46 | 51 | "\t${0:// do something}", |
47 | | - "\tReturn $4", |
| 52 | + "\tReturn $5", |
48 | 53 | "}" |
49 | 54 | ] |
50 | 55 | }, |
51 | 56 | "Property": { |
52 | 57 | "prefix": "Property", |
53 | | - "body": "Property ${1:PropertyName} As ${2:%String};" |
| 58 | + "body": [ |
| 59 | + "/// ${1:Description}", |
| 60 | + "Property ${2:PropertyName} As ${3:%String};" |
| 61 | + ] |
54 | 62 | }, |
55 | 63 | "Projection": { |
56 | 64 | "prefix": "Projection", |
57 | | - "body": "Projection ${1:ProjectionName} As ${2:PackageName.ProjectionClassName};" |
| 65 | + "body": [ |
| 66 | + "/// ${1:Description}", |
| 67 | + "Projection ${2:ProjectionName} As ${3:PackageName.ProjectionClassName};" |
| 68 | + ] |
58 | 69 | }, |
59 | 70 | "Unique Property": { |
60 | 71 | "prefix": ["Unique", "Property"], |
61 | 72 | "body": [ |
62 | | - "Property ${1:PropertyName} As ${2:%String};", |
| 73 | + "/// ${1:Description}", |
| 74 | + "Property ${2:PropertyName} As ${3:%String};", |
63 | 75 | "", |
64 | | - "Index $1Index On $1 [Unique];" |
| 76 | + "Index $2Index On $2 [Unique];" |
65 | 77 | ] |
66 | 78 | }, |
67 | 79 | "Always-Computed Property": { |
68 | 80 | "prefix": ["Computed", "Property"], |
69 | 81 | "body" : [ |
70 | | - "Property ${1:PropertyName} As ${2:%String} [Calculated, SqlComputed, SqlComputeCode =", |
71 | | - "\t{Set {$1} = {${3:expression}}}", |
| 82 | + "/// ${1:Description}", |
| 83 | + "Property ${2:PropertyName} As ${3:%String} [Calculated, SqlComputed, SqlComputeCode =", |
| 84 | + "\t{Set {$2} = {${4:expression}}}", |
72 | 85 | "];" |
73 | 86 | ] |
74 | 87 | }, |
75 | 88 | "Date/Time Property": { |
76 | 89 | "prefix": ["Date", "Time", "Property"], |
77 | | - "body" : ["Property ${1:PropertyName} As ${2|%Date,%Time|}(MINVAL = $3, MAXVAL = $4);"] |
| 90 | + "body" : [ |
| 91 | + "/// ${1:Description}", |
| 92 | + "Property ${2:PropertyName} As ${3|%Date,%Time|}(MINVAL = $4, MAXVAL = $5);" |
| 93 | + ] |
78 | 94 | }, |
79 | 95 | "Parameter": { |
80 | 96 | "prefix": "Parameter", |
81 | | - "body": "Parameter ${1:PARAMETERNAME} = \"$0\";" |
| 97 | + "body": [ |
| 98 | + "/// ${1:Description}", |
| 99 | + "Parameter ${2:PARAMETERNAME} = \"$0\";" |
| 100 | + ] |
82 | 101 | }, |
83 | 102 | "Index": { |
84 | 103 | "prefix": "Index", |
85 | | - "body": "Index ${1:IndexName} On ${2:property};" |
| 104 | + "body": [ |
| 105 | + "/// ${1:Description}", |
| 106 | + "Index ${2:IndexName} On ${3:property};" |
| 107 | + ] |
86 | 108 | }, |
87 | 109 | "Unique Index": { |
88 | 110 | "prefix": "Index", |
89 | | - "body": "Index ${1:IndexName} On ${2:property} [Unique];", |
| 111 | + "body": [ |
| 112 | + "/// ${1:Description}", |
| 113 | + "Index ${2:IndexName} On ${3:property} [Unique];" |
| 114 | + ], |
90 | 115 | "description": "Unique Index" |
91 | 116 | }, |
92 | 117 | "Query": { |
93 | 118 | "prefix":["Query"], |
94 | 119 | "body":[ |
95 | | - "Query ${1:QueryName}($2) As %SQLQuery [ SqlProc ]", |
| 120 | + "/// ${1:Description}", |
| 121 | + "Query ${2:QueryName}($3) As %SQLQuery [ SqlProc ]", |
96 | 122 | "{", |
97 | | - "\tSELECT ${3:select-items}", |
98 | | - "\tFROM ${4:table-refs}", |
99 | | - "\tWHERE ${5:condition-expression}", |
100 | | - "\tORDER BY ${6:ordering-items}", |
| 123 | + "\tSELECT ${4:select-items}", |
| 124 | + "\tFROM ${5:table-refs}", |
| 125 | + "\tWHERE ${6:condition-expression}", |
| 126 | + "\tORDER BY ${7:ordering-items}", |
101 | 127 | "}" |
102 | 128 | ], |
103 | 129 | "description": "SQL statement" |
104 | 130 | }, |
105 | 131 | "Trigger": { |
106 | 132 | "prefix": "Trigger", |
107 | 133 | "body": [ |
108 | | - "Trigger ${1:TriggerName} [Event=${2|INSERT,UPDATE,DELETE|}, Time=${3|BEFORE,AFTER|}, Foreach=${4|row/object,row,statement|}]", |
| 134 | + "/// ${1:Description}", |
| 135 | + "Trigger ${2:TriggerName} [Event=${3|INSERT,UPDATE,DELETE|}, Time=${4|BEFORE,AFTER|}, Foreach=${5|row/object,row,statement|}]", |
109 | 136 | "{", |
110 | 137 | "\t${0:// do something}", |
111 | 138 | "}" |
|
114 | 141 | }, |
115 | 142 | "ForeignKey": { |
116 | 143 | "prefix": "ForeignKey", |
117 | | - "body": "ForeignKey ${1:ForeignKeyName}(${2:property}) References ${3:referencedClass}(${4:refIndex});", |
| 144 | + "body": [ |
| 145 | + "/// ${1:Description}", |
| 146 | + "ForeignKey ${2:ForeignKeyName}(${3:property}) References ${4:referencedClass}(${5:refIndex});" |
| 147 | + ], |
118 | 148 | "description": "ForeignKey" |
119 | 149 | }, |
120 | 150 | "Relationship": { |
121 | 151 | "prefix": ["Relationship"], |
122 | | - "body": "Relationship ${1:RelationshipName} As ${2:classname} [ Cardinality = ${3|one,many,parent,children|}, Inverse = ${4:correspondingProperty} ];", |
| 152 | + "body": [ |
| 153 | + "/// ${1:Description}", |
| 154 | + "Relationship ${2:RelationshipName} As ${3:classname} [ Cardinality = ${4|one,many,parent,children|}, Inverse = ${5:correspondingProperty} ];" |
| 155 | + ], |
123 | 156 | "description": "Relationship" |
124 | 157 | }, |
125 | 158 | "XData": { |
126 | 159 | "prefix": "XData", |
127 | 160 | "body": [ |
128 | | - "XData ${1:XDataName}", |
| 161 | + "/// ${1:Description}", |
| 162 | + "XData ${2:XDataName}", |
129 | 163 | "{", |
130 | 164 | "$0", |
131 | 165 | "}" |
|
135 | 169 | "BusinessService": { |
136 | 170 | "prefix": ["BusinessService","Interoperability","ClassService"], |
137 | 171 | "body": [ |
138 | | - "Class ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessService", |
| 172 | + "/// ${1:Description}", |
| 173 | + "Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessService", |
139 | 174 | "{", |
140 | 175 | "", |
141 | | - "Property Adapter As ${2:Ens.InboundAdapter};", |
| 176 | + "Property Adapter As ${3:Ens.InboundAdapter};", |
142 | 177 | "", |
143 | | - "Parameter ADAPTER = \"$2\";", |
| 178 | + "Parameter ADAPTER = \"$3\";", |
144 | 179 | "", |
145 | 180 | "Method OnProcessInput(pInput As %RegisteredObject, pOutput As %RegisteredObject) As %Status", |
146 | 181 | "{", |
147 | | - "\t$3", |
| 182 | + "\t$0", |
148 | 183 | "\tReturn \\$\\$\\$ERROR(\\$\\$\\$NotImplemented)", |
149 | 184 | "}", |
150 | 185 | "}" |
|
154 | 189 | "BusinessOperation": { |
155 | 190 | "prefix":["BusinessOperation","Interoperability","ClassOperation"], |
156 | 191 | "body": [ |
157 | | - "Class ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessOperation", |
| 192 | + "/// ${1:Description}", |
| 193 | + "Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.BusinessOperation", |
158 | 194 | "{", |
159 | 195 | "", |
160 | | - "Property Adapter As ${2:Ens.OutboundAdapter};", |
| 196 | + "Property Adapter As ${3:Ens.OutboundAdapter};", |
161 | 197 | "", |
162 | | - "Parameter ADAPTER = \"$2\";", |
| 198 | + "Parameter ADAPTER = \"$3\";", |
163 | 199 | "", |
164 | 200 | "Parameter INVOCATION = \"Queue\";", |
165 | 201 | "", |
166 | | - "Method SampleCall(pRequest As ${3:Ens.Request}, Output pResponse As ${4:Ens.Response} ) As %Status", |
| 202 | + "Method SampleCall(pRequest As ${4:Ens.Request}, Output pResponse As ${5:Ens.Response} ) As %Status", |
167 | 203 | "{", |
168 | | - "\t$5", |
| 204 | + "\t$0", |
169 | 205 | "\tReturn \\$\\$\\$ERROR(\\$\\$\\$NotImplemented)", |
170 | 206 | "}", |
171 | 207 | "", |
172 | 208 | "XData MessageMap", |
173 | 209 | "{", |
174 | 210 | "<MapItems>", |
175 | | - "\t<MapItem MessageType=\"$3\">", |
| 211 | + "\t<MapItem MessageType=\"$4\">", |
176 | 212 | "\t\t<Method>SampleCall</Method>", |
177 | 213 | "\t</MapItem>", |
178 | 214 | "</MapItems>", |
|
184 | 220 | "Production": { |
185 | 221 | "prefix": ["Production","Interoperability","ClassProduction"], |
186 | 222 | "body": [ |
187 | | - "Class ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Production", |
| 223 | + "/// ${1:Description}", |
| 224 | + "Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Production", |
188 | 225 | "{", |
189 | 226 | "", |
190 | 227 | "XData ProductionDefinition", |
191 | 228 | "{", |
192 | | - "\t<Production Name=\"$1\">", |
| 229 | + "\t<Production Name=\"$2\">", |
193 | 230 | "\t\t<ActorPoolSize>2</ActorPoolSize>", |
194 | | - "\t\t<Item ClassName=\"$2\" Name=\"$3\" PoolSize=\"1\"/>", |
| 231 | + "\t\t<Item ClassName=\"$3\" Name=\"$4\" PoolSize=\"1\"/>", |
195 | 232 | "\t</Production>", |
196 | 233 | "}", |
197 | 234 | "}" |
|
201 | 238 | "Request": { |
202 | 239 | "prefix": ["Request","Interoperability","ClassRequest"], |
203 | 240 | "body": [ |
204 | | - "Class ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Request", |
| 241 | + "/// ${1:Description}", |
| 242 | + "Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Request", |
205 | 243 | "{", |
206 | 244 | "$0", |
207 | 245 | "}" |
|
211 | 249 | "Response": { |
212 | 250 | "prefix": ["Response","Interoperability","ClassResponse"], |
213 | 251 | "body": [ |
214 | | - "Class ${1:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Response", |
| 252 | + "/// ${1:Description}", |
| 253 | + "Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Response", |
215 | 254 | "{", |
216 | 255 | "$0", |
217 | 256 | "}" |
|
0 commit comments