|
3 | 3 | "prefix": "attribute", |
4 | 4 | "body": [ |
5 | 5 | "[System.AttributeUsage(System.AttributeTargets.${1:All}, Inherited = ${2:false}, AllowMultiple = ${3:true})]", |
6 | | - "sealed class ${4:My}Attribute : System.Attribute", |
| 6 | + "sealed class ${$TM_FILENAME_BASE}Attribute : System.Attribute", |
7 | 7 | "{", |
8 | 8 | "\t// See the attribute guidelines at", |
9 | 9 | "\t// http://go.microsoft.com/fwlink/?LinkId=85236", |
10 | 10 | "\treadonly string positionalString;", |
11 | 11 | "\t", |
12 | 12 | "\t// This is a positional argument", |
13 | | - "\tpublic ${4:My}Attribute(string positionalString)", |
| 13 | + "\tpublic ${4:$TM_FILENAME_BASE}Attribute(string positionalString)", |
14 | 14 | "\t{", |
15 | 15 | "\t\tthis.positionalString = positionalString;", |
16 | 16 | "\t\t", |
|
51 | 51 | "Class": { |
52 | 52 | "prefix": "class", |
53 | 53 | "body": [ |
54 | | - "class ${1:Name}", |
| 54 | + "class ${1:$TM_FILENAME_BASE}", |
55 | 55 | "{", |
56 | 56 | "\t$0", |
57 | 57 | "}" |
|
88 | 88 | "Enum": { |
89 | 89 | "prefix": "enum", |
90 | 90 | "body": [ |
91 | | - "enum ${1:Name}", |
| 91 | + "enum ${1:$TM_FILENAME_BASE}", |
92 | 92 | "{", |
93 | 93 | "\t$0", |
94 | 94 | "}" |
|
132 | 132 | "prefix": "exception", |
133 | 133 | "body": [ |
134 | 134 | "[System.Serializable]", |
135 | | - "public class ${1:My}Exception : ${2:System.Exception}", |
| 135 | + "public class ${1:$TM_FILENAME_BASE}Exception : ${2:System.Exception}", |
136 | 136 | "{", |
137 | | - "\tpublic ${1:My}Exception() { }", |
138 | | - "\tpublic ${1:My}Exception(string message) : base(message) { }", |
139 | | - "\tpublic ${1:My}Exception(string message, System.Exception inner) : base(message, inner) { }", |
140 | | - "\tprotected ${1:My}Exception(", |
| 137 | + "\tpublic ${1:$TM_FILENAME_BASE}Exception() { }", |
| 138 | + "\tpublic ${1:$TM_FILENAME_BASE}Exception(string message) : base(message) { }", |
| 139 | + "\tpublic ${1:$TM_FILENAME_BASE}Exception(string message, System.Exception inner) : base(message, inner) { }", |
| 140 | + "\tprotected ${1:$TM_FILENAME_BASE}Exception(", |
141 | 141 | "\t\tSystem.Runtime.Serialization.SerializationInfo info,", |
142 | 142 | "\t\tSystem.Runtime.Serialization.StreamingContext context) : base(info, context) { }", |
143 | 143 | "}" |
|
198 | 198 | "Interface": { |
199 | 199 | "prefix": "interface", |
200 | 200 | "body": [ |
201 | | - "interface I${1:Name}", |
| 201 | + "interface ${1:$TM_FILENAME_BASE}", |
202 | 202 | "{", |
203 | 203 | "\t$0", |
204 | 204 | "}" |
|
368 | 368 | "Struct": { |
369 | 369 | "prefix": "struct", |
370 | 370 | "body": [ |
371 | | - "struct ${1:Name}", |
| 371 | + "struct ${1:$TM_FILENAME_BASE}", |
372 | 372 | "{", |
373 | 373 | "\t$0", |
374 | 374 | "}" |
|
0 commit comments