@codingame/monaco-editor-wrapper 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/COBOL Copybook2.js +2017 -0
  2. package/dist/COBOL2.js +2017 -0
  3. package/dist/JavaScript.tmLanguage.js +0 -49
  4. package/dist/JavaScriptReact.tmLanguage.js +0 -49
  5. package/dist/SQL.plist.js +482 -0
  6. package/dist/TypeScript.tmLanguage.js +0 -49
  7. package/dist/TypeScriptReact.tmLanguage.js +0 -49
  8. package/dist/bsv2.js +49 -0
  9. package/dist/c2.js +18 -0
  10. package/dist/cobol-snippets.js +2017 -0
  11. package/dist/codeblock3.js +18 -18
  12. package/dist/coffeescript-coffeescript.code-snippets.js +18 -0
  13. package/dist/coffeescript2.js +18 -0
  14. package/dist/configuration/hack.d.ts +2 -0
  15. package/dist/cpp-c.code-snippets.js +18 -0
  16. package/dist/cpp-cpp.code-snippets.js +18 -0
  17. package/dist/cpp2.js +18 -0
  18. package/dist/cpptools.js +2 -2
  19. package/dist/csharp2.js +508 -0
  20. package/dist/cssContribution.js +10 -0
  21. package/dist/diet3.js +92 -0
  22. package/dist/elixir-snippets.js +184 -0
  23. package/dist/extensionConfigurations.js +9475 -0
  24. package/dist/features/extensionConfigurations.js +3 -3
  25. package/dist/fsharp-fsharp.code-snippets.js +18 -0
  26. package/dist/fsharp2.js +18 -0
  27. package/dist/groovy-groovy.code-snippets.js +229 -0
  28. package/dist/groovy2.js +229 -0
  29. package/dist/html (eex).js +31 -0
  30. package/dist/htmlContribution.js +10 -0
  31. package/dist/java.js +11 -0
  32. package/dist/java2.js +1 -1
  33. package/dist/javascript-javascript.code-snippets.js +196 -0
  34. package/dist/javascript2.js +196 -0
  35. package/dist/javascriptreact2.js +196 -0
  36. package/dist/jsonContribution.js +78 -0
  37. package/dist/kotlin2.js +117 -0
  38. package/dist/kotlinscript2.js +117 -0
  39. package/dist/languages/extensions/configurationLoader.d.ts +2 -20
  40. package/dist/languages/monarch/list.d.ts +7 -0
  41. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  42. package/dist/main.js +42 -124
  43. package/dist/markdown-basics-markdown.code-snippets.js +121 -0
  44. package/dist/markdown-basics-markdown.js +0 -18
  45. package/dist/markdown-basics.js +103 -0
  46. package/dist/markdown2.js +103 -0
  47. package/dist/pgsql-sql.js +21 -0
  48. package/dist/pgsql.js +21 -0
  49. package/dist/php-php.code-snippets.js +265 -0
  50. package/dist/php2.js +265 -0
  51. package/dist/powershell-powershell.code-snippets.js +18 -0
  52. package/dist/powershell2.js +18 -0
  53. package/dist/r.tmLanguage.js +572 -0
  54. package/dist/r2.js +1 -1
  55. package/dist/reason2.js +100 -0
  56. package/dist/scalameta.js +6 -1
  57. package/dist/services/functional.d.ts +1 -0
  58. package/dist/services/lyfecycle.d.ts +13 -0
  59. package/dist/sql2.js +21 -0
  60. package/dist/svlangserver-systemverilog.js +395 -0
  61. package/dist/svlangserver.js +85 -0
  62. package/dist/swift-swift.code-snippets.js +183 -0
  63. package/dist/swift2.js +183 -0
  64. package/dist/systemverilog.js +41 -7
  65. package/dist/systemverilog.tmLanguage.js +676 -496
  66. package/dist/systemverilog2.js +208 -0
  67. package/dist/tcl2.js +151 -0
  68. package/dist/typescript-basics-typescript.code-snippets.js +312 -0
  69. package/dist/typescript-basics.js +312 -0
  70. package/dist/typescript2.js +312 -0
  71. package/dist/typescriptContribution.js +36 -0
  72. package/dist/typescriptreact2.js +312 -0
  73. package/dist/vb-vb.code-snippets.js +88 -0
  74. package/dist/vb2.js +88 -0
  75. package/dist/verilog-systemverilog.js +327 -140
  76. package/dist/verilog.js +85 -3
  77. package/dist/verilog2.js +56 -65
  78. package/dist/vscode-R-r-snippets.js +534 -0
  79. package/dist/vscode-R-rmarkdown.js +91 -0
  80. package/dist/vscode-R-rmd.js +2 -2
  81. package/dist/vscode-python.js +9 -0
  82. package/package.json +1 -1
  83. package/stats.html +1 -1
  84. package/dist/Groovy2.js +0 -28
  85. package/dist/features/mutualizedExtensionConfigurations.d.ts +0 -1
  86. package/dist/features/mutualizedExtensionConfigurations.js +0 -4857
  87. package/dist/services/CustomFoldingRulesLanguageConfigurationService.d.ts +0 -4
@@ -4,26 +4,26 @@ var scopeName = "markdown.verilog.codeblock";
4
4
  var injectionSelector = "L:text.html.markdown";
5
5
  var patterns = [
6
6
  {
7
- include: "#fenced_code_block_verilog"
7
+ include: "#fenced_code_block_systemverilog"
8
8
  },
9
9
  {
10
- include: "#fenced_code_block_systemverilog"
10
+ include: "#fenced_code_block_verilog"
11
11
  }
12
12
  ];
13
13
  var repository = {
14
- fenced_code_block_verilog: {
15
- begin: "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(v|verilog)((\\s+|:|\\{)[^`~]*)?$)",
14
+ fenced_code_block_systemverilog: {
15
+ begin: "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(sv|systemverilog)(\\s+[^`~]*)?$)",
16
16
  name: "markup.fenced_code.block.markdown",
17
17
  end: "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
18
18
  beginCaptures: {
19
19
  "3": {
20
20
  name: "punctuation.definition.markdown"
21
21
  },
22
- "4": {
23
- name: "fenced_code.block.language.markdown"
24
- },
25
22
  "5": {
26
- name: "fenced_code.block.language.attributes.markdown"
23
+ name: "fenced_code.block.language"
24
+ },
25
+ "6": {
26
+ name: "fenced_code.block.language.attributes"
27
27
  }
28
28
  },
29
29
  endCaptures: {
@@ -35,28 +35,28 @@ var repository = {
35
35
  {
36
36
  begin: "(^|\\G)(\\s*)(.*)",
37
37
  "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
38
- contentName: "meta.embedded.block.verilog",
38
+ contentName: "meta.embedded.block.systemverilog",
39
39
  patterns: [
40
40
  {
41
- include: "source.verilog"
41
+ include: "source.systemverilog"
42
42
  }
43
43
  ]
44
44
  }
45
45
  ]
46
46
  },
47
- fenced_code_block_systemverilog: {
48
- begin: "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(sv|systemverilog)((\\s+|:|\\{)[^`~]*)?$)",
47
+ fenced_code_block_verilog: {
48
+ begin: "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(v|verilog)(\\s+[^`~]*)?$)",
49
49
  name: "markup.fenced_code.block.markdown",
50
50
  end: "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
51
51
  beginCaptures: {
52
52
  "3": {
53
53
  name: "punctuation.definition.markdown"
54
54
  },
55
- "4": {
56
- name: "fenced_code.block.language.markdown"
57
- },
58
55
  "5": {
59
- name: "fenced_code.block.language.attributes.markdown"
56
+ name: "fenced_code.block.language"
57
+ },
58
+ "6": {
59
+ name: "fenced_code.block.language.attributes"
60
60
  }
61
61
  },
62
62
  endCaptures: {
@@ -68,7 +68,7 @@ var repository = {
68
68
  {
69
69
  begin: "(^|\\G)(\\s*)(.*)",
70
70
  "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
71
- contentName: "meta.embedded.block.systemverilog",
71
+ contentName: "meta.embedded.block.verilog",
72
72
  patterns: [
73
73
  {
74
74
  include: "source.systemverilog"
@@ -79,7 +79,7 @@ var repository = {
79
79
  }
80
80
  };
81
81
  var information_for_contributors = [
82
- "This file has been converted from https://github.com/mshr-h/vscode-verilog-hdl-support/blob/master/",
82
+ "This file has been converted from https://github.com/codingame/svlangserver/blob/master/",
83
83
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
84
84
  "Once accepted there, we are happy to receive an update request."
85
85
  ];
@@ -0,0 +1,18 @@
1
+ var coffeescriptCoffeescript_codeSnippets = {
2
+ "Region Start": {
3
+ prefix: "#region",
4
+ body: [
5
+ "#region"
6
+ ],
7
+ description: "Folding Region Start"
8
+ },
9
+ "Region End": {
10
+ prefix: "#endregion",
11
+ body: [
12
+ "#endregion"
13
+ ],
14
+ description: "Folding Region End"
15
+ }
16
+ };
17
+
18
+ export { coffeescriptCoffeescript_codeSnippets as default };
@@ -0,0 +1,18 @@
1
+ var coffeescript = {
2
+ "Region Start": {
3
+ prefix: "#region",
4
+ body: [
5
+ "#region"
6
+ ],
7
+ description: "Folding Region Start"
8
+ },
9
+ "Region End": {
10
+ prefix: "#endregion",
11
+ body: [
12
+ "#endregion"
13
+ ],
14
+ description: "Folding Region End"
15
+ }
16
+ };
17
+
18
+ export { coffeescript as default };
@@ -0,0 +1,2 @@
1
+ export declare const FILES_EXCLUDE_CONFIG = "files.exclude";
2
+ export declare const FILES_ASSOCIATIONS_CONFIG = "files.associations";
@@ -0,0 +1,18 @@
1
+ var cppC_codeSnippets = {
2
+ "Region Start": {
3
+ prefix: "#region",
4
+ body: [
5
+ "#pragma region $0"
6
+ ],
7
+ description: "Folding Region Start"
8
+ },
9
+ "Region End": {
10
+ prefix: "#endregion",
11
+ body: [
12
+ "#pragma endregion"
13
+ ],
14
+ description: "Folding Region End"
15
+ }
16
+ };
17
+
18
+ export { cppC_codeSnippets as default };
@@ -0,0 +1,18 @@
1
+ var cppCpp_codeSnippets = {
2
+ "Region Start": {
3
+ prefix: "#region",
4
+ body: [
5
+ "#pragma region $0"
6
+ ],
7
+ description: "Folding Region Start"
8
+ },
9
+ "Region End": {
10
+ prefix: "#endregion",
11
+ body: [
12
+ "#pragma endregion"
13
+ ],
14
+ description: "Folding Region End"
15
+ }
16
+ };
17
+
18
+ export { cppCpp_codeSnippets as default };
package/dist/cpp2.js ADDED
@@ -0,0 +1,18 @@
1
+ var cpp = {
2
+ "Region Start": {
3
+ prefix: "#region",
4
+ body: [
5
+ "#pragma region $0"
6
+ ],
7
+ description: "Folding Region Start"
8
+ },
9
+ "Region End": {
10
+ prefix: "#endregion",
11
+ body: [
12
+ "#pragma endregion"
13
+ ],
14
+ description: "Folding Region End"
15
+ }
16
+ };
17
+
18
+ export { cpp as default };
package/dist/cpptools.js CHANGED
@@ -2203,7 +2203,7 @@ var cpptools = [
2203
2203
  "C_Cpp.default.dotConfig": {
2204
2204
  "type": "string",
2205
2205
  "default": null,
2206
- "markdownDescription": "%c_cpp.configuration.default.dotConfig.markdownDescription%",
2206
+ "markdownDescription": "The value to use in a configuration if `dotConfig` is not specified, or the value to insert if `${default}` is present in `dotConfig`.",
2207
2207
  "scope": 4
2208
2208
  },
2209
2209
  "C_Cpp.updateChannel": {
@@ -2316,7 +2316,7 @@ var cpptools = [
2316
2316
  "tags": [
2317
2317
  "experimental"
2318
2318
  ],
2319
- "description": "Show icon for 'Debug and Run' in shortcut menu bar",
2319
+ "description": "Show the Run and Debug play button in the editor title bar for C++ files",
2320
2320
  "scope": 1
2321
2321
  }
2322
2322
  }
@@ -0,0 +1,508 @@
1
+ var Class = {
2
+ prefix: "class",
3
+ body: [
4
+ "class ${1:Name}",
5
+ "{",
6
+ "\t$0",
7
+ "}"
8
+ ],
9
+ description: "Class"
10
+ };
11
+ var Enum = {
12
+ prefix: "enum",
13
+ body: [
14
+ "enum ${1:Name}",
15
+ "{",
16
+ "\t$0",
17
+ "}"
18
+ ],
19
+ description: "Enum"
20
+ };
21
+ var Exception = {
22
+ prefix: "exception",
23
+ body: [
24
+ "[System.Serializable]",
25
+ "public class ${1:My}Exception : ${2:System.Exception}",
26
+ "{",
27
+ "\tpublic ${1:My}Exception() { }",
28
+ "\tpublic ${1:My}Exception(string message) : base(message) { }",
29
+ "\tpublic ${1:My}Exception(string message, System.Exception inner) : base(message, inner) { }",
30
+ "\tprotected ${1:My}Exception(",
31
+ "\t\tSystem.Runtime.Serialization.SerializationInfo info,",
32
+ "\t\tSystem.Runtime.Serialization.StreamingContext context) : base(info, context) { }",
33
+ "}"
34
+ ],
35
+ description: "Exception"
36
+ };
37
+ var Indexer = {
38
+ prefix: "indexer",
39
+ body: [
40
+ "${1:public} ${2:object} this[${3:int} index]",
41
+ "{",
42
+ "\tget { $4 }",
43
+ "\tset { $0 }",
44
+ "}"
45
+ ],
46
+ description: "Indexer"
47
+ };
48
+ var Interface = {
49
+ prefix: "interface",
50
+ body: [
51
+ "interface I${1:Name}",
52
+ "{",
53
+ "\t$0",
54
+ "}"
55
+ ],
56
+ description: "Interface"
57
+ };
58
+ var Namespace = {
59
+ prefix: "namespace",
60
+ body: [
61
+ "namespace ${1:Name}",
62
+ "{",
63
+ "\t$0",
64
+ "}"
65
+ ],
66
+ description: "Namespace"
67
+ };
68
+ var FileScopedNamespace = {
69
+ prefix: "fsnamespace",
70
+ body: [
71
+ "namespace ${1:Name};"
72
+ ],
73
+ description: "File-scoped namespace"
74
+ };
75
+ var propg = {
76
+ prefix: "propg",
77
+ body: [
78
+ "public ${1:int} ${2:MyProperty} { get; private set; }$0"
79
+ ],
80
+ description: "An automatically implemented property with a 'get' accessor and a private 'set' accessor. C# 3.0 or higher"
81
+ };
82
+ var prop = {
83
+ prefix: "prop",
84
+ body: [
85
+ "public ${1:int} ${2:MyProperty} { get; set; }$0"
86
+ ],
87
+ description: "An automatically implemented property. C# 3.0 or higher"
88
+ };
89
+ var sim = {
90
+ prefix: "sim",
91
+ body: [
92
+ "static int Main(string[] args)",
93
+ "{",
94
+ "\t$0",
95
+ "\treturn 0;",
96
+ "}"
97
+ ],
98
+ description: "int Main()"
99
+ };
100
+ var Struct = {
101
+ prefix: "struct",
102
+ body: [
103
+ "struct ${1:Name}",
104
+ "{",
105
+ "\t$0",
106
+ "}"
107
+ ],
108
+ description: "Struct"
109
+ };
110
+ var svm = {
111
+ prefix: "svm",
112
+ body: [
113
+ "static void Main(string[] args)",
114
+ "{",
115
+ "\t$0",
116
+ "}"
117
+ ],
118
+ description: "void Main()"
119
+ };
120
+ var constructor = {
121
+ prefix: "ctor",
122
+ body: [
123
+ "${1:public} ${2:$TM_FILENAME_BASE}(${3:Parameters})",
124
+ "{",
125
+ "\t$0",
126
+ "}"
127
+ ],
128
+ description: "constructor"
129
+ };
130
+ var csharp = {
131
+ "Attribute using recommended pattern": {
132
+ prefix: "attribute",
133
+ body: [
134
+ "[System.AttributeUsage(System.AttributeTargets.${1:All}, Inherited = ${2:false}, AllowMultiple = ${3:true})]",
135
+ "sealed class ${4:My}Attribute : System.Attribute",
136
+ "{",
137
+ "\t// See the attribute guidelines at",
138
+ "\t// http://go.microsoft.com/fwlink/?LinkId=85236",
139
+ "\treadonly string positionalString;",
140
+ "\t",
141
+ "\t// This is a positional argument",
142
+ "\tpublic ${4:My}Attribute(string positionalString)",
143
+ "\t{",
144
+ "\t\tthis.positionalString = positionalString;",
145
+ "\t\t",
146
+ "\t\t// TODO: Implement code here",
147
+ "\t\t${5:throw new System.NotImplementedException();}",
148
+ "\t}",
149
+ "\t",
150
+ "\tpublic string PositionalString",
151
+ "\t{",
152
+ "\t\tget { return positionalString; }",
153
+ "\t}",
154
+ "\t",
155
+ "\t// This is a named argument",
156
+ "\tpublic int NamedInt { get; set; }",
157
+ "}"
158
+ ],
159
+ description: "Attribute using recommended pattern"
160
+ },
161
+ "Disable format": {
162
+ prefix: "disableformat",
163
+ body: [
164
+ "#pragma warning disable format",
165
+ "$0${TM_SELECTED_TEXT}",
166
+ "#pragma warning restore format"
167
+ ],
168
+ description: "disable format of dotnet code"
169
+ },
170
+ "Checked block": {
171
+ prefix: "checked",
172
+ body: [
173
+ "checked",
174
+ "{",
175
+ "\t${TM_SELECTED_TEXT}$0",
176
+ "}"
177
+ ],
178
+ description: "Checked block"
179
+ },
180
+ Class: Class,
181
+ "Console.WriteLine": {
182
+ prefix: "cw",
183
+ body: [
184
+ "System.Console.WriteLine(${TM_SELECTED_TEXT}$0);"
185
+ ],
186
+ description: "Console.WriteLine"
187
+ },
188
+ "do...while loop": {
189
+ prefix: "do",
190
+ body: [
191
+ "do",
192
+ "{",
193
+ "\t${TM_SELECTED_TEXT}$0",
194
+ "} while (${1:true});"
195
+ ],
196
+ description: "do...while loop"
197
+ },
198
+ "Else statement": {
199
+ prefix: "else",
200
+ body: [
201
+ "else",
202
+ "{",
203
+ "\t${TM_SELECTED_TEXT}$0",
204
+ "}"
205
+ ],
206
+ description: "Else statement"
207
+ },
208
+ Enum: Enum,
209
+ "Implementing Equals() according to guidelines": {
210
+ prefix: "equals",
211
+ body: [
212
+ "// override object.Equals",
213
+ "public override bool Equals(object obj)",
214
+ "{",
215
+ "\t//",
216
+ "\t// See the full list of guidelines at",
217
+ "\t// http://go.microsoft.com/fwlink/?LinkID=85237",
218
+ "\t// and also the guidance for operator== at",
219
+ "\t// http://go.microsoft.com/fwlink/?LinkId=85238",
220
+ "\t//",
221
+ "\t",
222
+ "\tif (obj == null || GetType() != obj.GetType())",
223
+ "\t{",
224
+ "\t\treturn false;",
225
+ "\t}",
226
+ "\t",
227
+ "\t// TODO: write your implementation of Equals() here",
228
+ "\t${1:throw new System.NotImplementedException();}",
229
+ "\treturn base.Equals (obj);",
230
+ "}",
231
+ "",
232
+ "// override object.GetHashCode",
233
+ "public override int GetHashCode()",
234
+ "{",
235
+ "\t// TODO: write your implementation of GetHashCode() here",
236
+ "\t${2:throw new System.NotImplementedException();}",
237
+ "\treturn base.GetHashCode();",
238
+ "}"
239
+ ],
240
+ description: "Implementing Equals() according to guidelines"
241
+ },
242
+ Exception: Exception,
243
+ "Foreach statement": {
244
+ prefix: "foreach",
245
+ body: [
246
+ "foreach (${1:var} ${2:item} in ${3:collection})",
247
+ "{",
248
+ "\t${TM_SELECTED_TEXT}$0",
249
+ "}"
250
+ ],
251
+ description: "Foreach statement"
252
+ },
253
+ "Reverse for loop": {
254
+ prefix: "forr",
255
+ body: [
256
+ "for (int ${1:i} = ${2:length} - 1; ${1:i} >= 0 ; ${1:i}--)",
257
+ "{",
258
+ "\t${TM_SELECTED_TEXT}$0",
259
+ "}"
260
+ ],
261
+ description: "Reverse for loop"
262
+ },
263
+ "for loop": {
264
+ prefix: "for",
265
+ body: [
266
+ "for (int ${1:i} = 0; ${1:i} < ${2:length}; ${1:i}++)",
267
+ "{",
268
+ "\t${TM_SELECTED_TEXT}$0",
269
+ "}"
270
+ ],
271
+ description: "for loop"
272
+ },
273
+ "if statement": {
274
+ prefix: "if",
275
+ body: [
276
+ "if (${1:true})",
277
+ "{",
278
+ "\t${TM_SELECTED_TEXT}$0",
279
+ "}"
280
+ ],
281
+ description: "if statement"
282
+ },
283
+ Indexer: Indexer,
284
+ Interface: Interface,
285
+ "Safely invoking an event": {
286
+ prefix: "invoke",
287
+ body: [
288
+ "${1:EventHandler} temp = ${2:MyEvent};",
289
+ "if (temp != null)",
290
+ "{",
291
+ "\ttemp($0);",
292
+ "}"
293
+ ],
294
+ description: "Safely invoking an event"
295
+ },
296
+ "Simple iterator": {
297
+ prefix: "iterator",
298
+ body: [
299
+ "public System.Collections.Generic.IEnumerator<${1:ElementType}> GetEnumerator()",
300
+ "{",
301
+ "\t$0throw new System.NotImplementedException();",
302
+ "\tyield return default(${1:ElementType});",
303
+ "}"
304
+ ],
305
+ description: "Simple iterator"
306
+ },
307
+ "Named iterator/indexer pair using a nested class": {
308
+ prefix: "iterindex",
309
+ body: [
310
+ "public ${1:Name}Iterator ${1:Name}",
311
+ "{",
312
+ "\tget",
313
+ "\t{",
314
+ "\t\treturn new ${1:Name}Iterator(this);",
315
+ "\t}",
316
+ "}",
317
+ "",
318
+ "public class ${1:Name}Iterator",
319
+ "{",
320
+ "\treadonly ${2:ClassName} outer;",
321
+ "\t",
322
+ "\tinternal ${1:Name}Iterator(${2:ClassName} outer)",
323
+ "\t{",
324
+ "\t\tthis.outer = outer;",
325
+ "\t}",
326
+ "\t",
327
+ "\t// TODO: provide an appropriate implementation here",
328
+ "\tpublic int Length { get { return 1; } }",
329
+ "\t",
330
+ "\tpublic ${3:ElementType} this[int index]",
331
+ "\t{",
332
+ "\t\tget",
333
+ "\t\t{",
334
+ "\t\t\t//",
335
+ "\t\t\t// TODO: implement indexer here",
336
+ "\t\t\t//",
337
+ "\t\t\t// you have full access to ${2:ClassName} privates",
338
+ "\t\t\t//",
339
+ "\t\t\t${4:throw new System.NotImplementedException();}",
340
+ "\t\t\treturn default(${3:ElementType});",
341
+ "\t\t}",
342
+ "\t}",
343
+ "\t",
344
+ "\tpublic System.Collections.Generic.IEnumerator<${3:ElementType}> GetEnumerator()",
345
+ "\t{",
346
+ "\t\tfor (int i = 0; i < this.Length; i++)",
347
+ "\t\t{",
348
+ "\t\t\tyield return this[i];",
349
+ "\t\t}",
350
+ "\t}",
351
+ "}"
352
+ ],
353
+ description: "Named iterator/indexer pair using a nested class"
354
+ },
355
+ "Lock statement": {
356
+ prefix: "lock",
357
+ body: [
358
+ "lock (${1:this})",
359
+ "{",
360
+ "\t${TM_SELECTED_TEXT}$0",
361
+ "}"
362
+ ],
363
+ description: "Lock statement"
364
+ },
365
+ "MessageBox.Show": {
366
+ prefix: "mbox",
367
+ body: [
368
+ "System.Windows.Forms.MessageBox.Show(\"${1:Text}\");$0"
369
+ ],
370
+ description: "MessageBox.Show"
371
+ },
372
+ Namespace: Namespace,
373
+ FileScopedNamespace: FileScopedNamespace,
374
+ "#if": {
375
+ prefix: "ifd",
376
+ body: [
377
+ "#if ${1:true}",
378
+ "\t${TM_SELECTED_TEXT}$0",
379
+ "#endif"
380
+ ],
381
+ description: "#if"
382
+ },
383
+ "#region": {
384
+ prefix: "region",
385
+ body: [
386
+ "#region ${1:Name}",
387
+ "\t${TM_SELECTED_TEXT}$0",
388
+ "#endregion"
389
+ ],
390
+ description: "#region"
391
+ },
392
+ "Property and backing field": {
393
+ prefix: "propfull",
394
+ body: [
395
+ "private ${1:int} ${2:myVar};",
396
+ "public ${1:int} ${3:MyProperty}",
397
+ "{",
398
+ "\tget { return ${2:myVar}; }",
399
+ "\tset { ${2:myVar} = value; }",
400
+ "}",
401
+ "$0"
402
+ ],
403
+ description: "Property and backing field"
404
+ },
405
+ propg: propg,
406
+ prop: prop,
407
+ sim: sim,
408
+ Struct: Struct,
409
+ svm: svm,
410
+ "Switch statement": {
411
+ prefix: "switch",
412
+ body: [
413
+ "switch (${1:switch_on})",
414
+ "{",
415
+ "\t$0",
416
+ "\tdefault:",
417
+ "}"
418
+ ],
419
+ description: "Switch statement"
420
+ },
421
+ "Try finally": {
422
+ prefix: "tryf",
423
+ body: [
424
+ "try",
425
+ "{",
426
+ "\t${TM_SELECTED_TEXT}$1",
427
+ "}",
428
+ "finally",
429
+ "{",
430
+ "\t$0",
431
+ "}"
432
+ ],
433
+ description: "Try finally"
434
+ },
435
+ "Try catch": {
436
+ prefix: "try",
437
+ body: [
438
+ "try",
439
+ "{",
440
+ "\t${TM_SELECTED_TEXT}$1",
441
+ "}",
442
+ "catch (${2:System.Exception})",
443
+ "{",
444
+ "\t$0",
445
+ "\tthrow;",
446
+ "}"
447
+ ],
448
+ description: "Try catch"
449
+ },
450
+ "Unchecked block": {
451
+ prefix: "unchecked",
452
+ body: [
453
+ "unchecked",
454
+ "{",
455
+ "\t${TM_SELECTED_TEXT}$0",
456
+ "}"
457
+ ],
458
+ description: "Unchecked block"
459
+ },
460
+ "Unsafe statement": {
461
+ prefix: "unsafe",
462
+ body: [
463
+ "unsafe",
464
+ "{",
465
+ "\t${TM_SELECTED_TEXT}$0",
466
+ "}"
467
+ ],
468
+ description: "Unsafe statement"
469
+ },
470
+ "Using statement": {
471
+ prefix: "using",
472
+ body: [
473
+ "using (${1:resource})",
474
+ "{",
475
+ "\t${TM_SELECTED_TEXT}$0",
476
+ "}"
477
+ ],
478
+ description: "Using statement"
479
+ },
480
+ "While loop": {
481
+ prefix: "while",
482
+ body: [
483
+ "while (${1:true})",
484
+ "{",
485
+ "\t${TM_SELECTED_TEXT}$0",
486
+ "}"
487
+ ],
488
+ description: "While loop"
489
+ },
490
+ constructor: constructor,
491
+ "xUnit Test": {
492
+ prefix: "fact",
493
+ body: [
494
+ "[Fact]",
495
+ "public void ${1:TestName}()",
496
+ "{",
497
+ "\t// Given",
498
+ "",
499
+ "\t// When",
500
+ "",
501
+ "\t// Then",
502
+ "}$0"
503
+ ],
504
+ description: "create xunit test method"
505
+ }
506
+ };
507
+
508
+ export { Class, Enum, Exception, FileScopedNamespace, Indexer, Interface, Namespace, Struct, constructor, csharp as default, prop, propg, sim, svm };