@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
@@ -0,0 +1,121 @@
1
+ var markdownBasicsMarkdown_codeSnippets = {
2
+ "Insert bold text": {
3
+ prefix: "bold",
4
+ body: "**${1:${TM_SELECTED_TEXT}}**$0",
5
+ description: "Insert bold text"
6
+ },
7
+ "Insert italic text": {
8
+ prefix: "italic",
9
+ body: "*${1:${TM_SELECTED_TEXT}}*$0",
10
+ description: "Insert italic text"
11
+ },
12
+ "Insert quoted text": {
13
+ prefix: "quote",
14
+ body: "> ${1:${TM_SELECTED_TEXT}}",
15
+ description: "Insert quoted text"
16
+ },
17
+ "Insert inline code": {
18
+ prefix: "code",
19
+ body: "`${1:${TM_SELECTED_TEXT}}`$0",
20
+ description: "Insert inline code"
21
+ },
22
+ "Insert fenced code block": {
23
+ prefix: "fenced codeblock",
24
+ body: [
25
+ "```${1|python,c,c++,c#,ruby,go,java,php,htm,css,javascript,json,markdown,console|}",
26
+ "${TM_SELECTED_TEXT}$0",
27
+ "```"
28
+ ],
29
+ description: "Insert fenced code block"
30
+ },
31
+ "Insert heading level 1": {
32
+ prefix: "heading1",
33
+ body: "# ${1:${TM_SELECTED_TEXT}}",
34
+ description: "Insert heading level 1"
35
+ },
36
+ "Insert heading level 2": {
37
+ prefix: "heading2",
38
+ body: "## ${1:${TM_SELECTED_TEXT}}",
39
+ description: "Insert heading level 2"
40
+ },
41
+ "Insert heading level 3": {
42
+ prefix: "heading3",
43
+ body: "### ${1:${TM_SELECTED_TEXT}}",
44
+ description: "Insert heading level 3"
45
+ },
46
+ "Insert heading level 4": {
47
+ prefix: "heading4",
48
+ body: "#### ${1:${TM_SELECTED_TEXT}}",
49
+ description: "Insert heading level 4"
50
+ },
51
+ "Insert heading level 5": {
52
+ prefix: "heading5",
53
+ body: "##### ${1:${TM_SELECTED_TEXT}}",
54
+ description: "Insert heading level 5"
55
+ },
56
+ "Insert heading level 6": {
57
+ prefix: "heading6",
58
+ body: "###### ${1:${TM_SELECTED_TEXT}}",
59
+ description: "Insert heading level 6"
60
+ },
61
+ "Insert unordered list": {
62
+ prefix: "unordered list",
63
+ body: [
64
+ "- ${1:first}",
65
+ "- ${2:second}",
66
+ "- ${3:third}",
67
+ "$0"
68
+ ],
69
+ description: "Insert unordered list"
70
+ },
71
+ "Insert ordered list": {
72
+ prefix: "ordered list",
73
+ body: [
74
+ "1. ${1:first}",
75
+ "2. ${2:second}",
76
+ "3. ${3:third}",
77
+ "$0"
78
+ ],
79
+ description: "Insert ordered list"
80
+ },
81
+ "Insert horizontal rule": {
82
+ prefix: "horizontal rule",
83
+ body: "----------\n",
84
+ description: "Insert horizontal rule"
85
+ },
86
+ "Insert link": {
87
+ prefix: "link",
88
+ body: "[${TM_SELECTED_TEXT:${1:text}}](https://${2:link})$0",
89
+ description: "Insert link"
90
+ },
91
+ "Insert image": {
92
+ prefix: "image",
93
+ body: "![${TM_SELECTED_TEXT:${1:alt}}](https://${2:link})$0",
94
+ description: "Insert image"
95
+ },
96
+ "Insert strikethrough": {
97
+ prefix: "strikethrough",
98
+ body: "~~${1:${TM_SELECTED_TEXT}}~~",
99
+ description: "Insert strikethrough"
100
+ },
101
+ "Insert inline math": {
102
+ prefix: [
103
+ "inline math"
104
+ ],
105
+ body: "$${1:${TM_SELECTED_TEXT}}$",
106
+ description: "Insert inline math"
107
+ },
108
+ "Insert fenced math": {
109
+ prefix: [
110
+ "fenced math"
111
+ ],
112
+ body: [
113
+ "$$",
114
+ "${1:${TM_SELECTED_TEXT}}",
115
+ "$$"
116
+ ],
117
+ description: "Insert fenced math"
118
+ }
119
+ };
120
+
121
+ export { markdownBasicsMarkdown_codeSnippets as default };
@@ -97,24 +97,6 @@ var markdownBasicsMarkdown = {
97
97
  prefix: "strikethrough",
98
98
  body: "~~${1:${TM_SELECTED_TEXT}}~~",
99
99
  description: "Insert strikethrough"
100
- },
101
- "Insert inline math": {
102
- prefix: [
103
- "inline math"
104
- ],
105
- body: "$${1:${TM_SELECTED_TEXT}}$",
106
- description: "Insert inline math"
107
- },
108
- "Insert fenced math": {
109
- prefix: [
110
- "fenced math"
111
- ],
112
- body: [
113
- "$$",
114
- "${1:${TM_SELECTED_TEXT}}",
115
- "$$"
116
- ],
117
- description: "Insert fenced math"
118
100
  }
119
101
  };
120
102
 
@@ -0,0 +1,103 @@
1
+ var markdownBasics = {
2
+ "Insert bold text": {
3
+ prefix: "bold",
4
+ body: "**${1:${TM_SELECTED_TEXT}}**$0",
5
+ description: "Insert bold text"
6
+ },
7
+ "Insert italic text": {
8
+ prefix: "italic",
9
+ body: "*${1:${TM_SELECTED_TEXT}}*$0",
10
+ description: "Insert italic text"
11
+ },
12
+ "Insert quoted text": {
13
+ prefix: "quote",
14
+ body: "> ${1:${TM_SELECTED_TEXT}}",
15
+ description: "Insert quoted text"
16
+ },
17
+ "Insert inline code": {
18
+ prefix: "code",
19
+ body: "`${1:${TM_SELECTED_TEXT}}`$0",
20
+ description: "Insert inline code"
21
+ },
22
+ "Insert fenced code block": {
23
+ prefix: "fenced codeblock",
24
+ body: [
25
+ "```${1|python,c,c++,c#,ruby,go,java,php,htm,css,javascript,json,markdown,console|}",
26
+ "${TM_SELECTED_TEXT}$0",
27
+ "```"
28
+ ],
29
+ description: "Insert fenced code block"
30
+ },
31
+ "Insert heading level 1": {
32
+ prefix: "heading1",
33
+ body: "# ${1:${TM_SELECTED_TEXT}}",
34
+ description: "Insert heading level 1"
35
+ },
36
+ "Insert heading level 2": {
37
+ prefix: "heading2",
38
+ body: "## ${1:${TM_SELECTED_TEXT}}",
39
+ description: "Insert heading level 2"
40
+ },
41
+ "Insert heading level 3": {
42
+ prefix: "heading3",
43
+ body: "### ${1:${TM_SELECTED_TEXT}}",
44
+ description: "Insert heading level 3"
45
+ },
46
+ "Insert heading level 4": {
47
+ prefix: "heading4",
48
+ body: "#### ${1:${TM_SELECTED_TEXT}}",
49
+ description: "Insert heading level 4"
50
+ },
51
+ "Insert heading level 5": {
52
+ prefix: "heading5",
53
+ body: "##### ${1:${TM_SELECTED_TEXT}}",
54
+ description: "Insert heading level 5"
55
+ },
56
+ "Insert heading level 6": {
57
+ prefix: "heading6",
58
+ body: "###### ${1:${TM_SELECTED_TEXT}}",
59
+ description: "Insert heading level 6"
60
+ },
61
+ "Insert unordered list": {
62
+ prefix: "unordered list",
63
+ body: [
64
+ "- ${1:first}",
65
+ "- ${2:second}",
66
+ "- ${3:third}",
67
+ "$0"
68
+ ],
69
+ description: "Insert unordered list"
70
+ },
71
+ "Insert ordered list": {
72
+ prefix: "ordered list",
73
+ body: [
74
+ "1. ${1:first}",
75
+ "2. ${2:second}",
76
+ "3. ${3:third}",
77
+ "$0"
78
+ ],
79
+ description: "Insert ordered list"
80
+ },
81
+ "Insert horizontal rule": {
82
+ prefix: "horizontal rule",
83
+ body: "----------\n",
84
+ description: "Insert horizontal rule"
85
+ },
86
+ "Insert link": {
87
+ prefix: "link",
88
+ body: "[${TM_SELECTED_TEXT:${1:text}}](https://${2:link})$0",
89
+ description: "Insert link"
90
+ },
91
+ "Insert image": {
92
+ prefix: "image",
93
+ body: "![${TM_SELECTED_TEXT:${1:alt}}](https://${2:link})$0",
94
+ description: "Insert image"
95
+ },
96
+ "Insert strikethrough": {
97
+ prefix: "strikethrough",
98
+ body: "~~${1:${TM_SELECTED_TEXT}}~~",
99
+ description: "Insert strikethrough"
100
+ }
101
+ };
102
+
103
+ export { markdownBasics as default };
@@ -0,0 +1,103 @@
1
+ var markdown = {
2
+ "Insert bold text": {
3
+ prefix: "bold",
4
+ body: "**${1:${TM_SELECTED_TEXT}}**$0",
5
+ description: "Insert bold text"
6
+ },
7
+ "Insert italic text": {
8
+ prefix: "italic",
9
+ body: "*${1:${TM_SELECTED_TEXT}}*$0",
10
+ description: "Insert italic text"
11
+ },
12
+ "Insert quoted text": {
13
+ prefix: "quote",
14
+ body: "> ${1:${TM_SELECTED_TEXT}}",
15
+ description: "Insert quoted text"
16
+ },
17
+ "Insert inline code": {
18
+ prefix: "code",
19
+ body: "`${1:${TM_SELECTED_TEXT}}`$0",
20
+ description: "Insert inline code"
21
+ },
22
+ "Insert fenced code block": {
23
+ prefix: "fenced codeblock",
24
+ body: [
25
+ "```${1|python,c,c++,c#,ruby,go,java,php,htm,css,javascript,json,markdown,console|}",
26
+ "${TM_SELECTED_TEXT}$0",
27
+ "```"
28
+ ],
29
+ description: "Insert fenced code block"
30
+ },
31
+ "Insert heading level 1": {
32
+ prefix: "heading1",
33
+ body: "# ${1:${TM_SELECTED_TEXT}}",
34
+ description: "Insert heading level 1"
35
+ },
36
+ "Insert heading level 2": {
37
+ prefix: "heading2",
38
+ body: "## ${1:${TM_SELECTED_TEXT}}",
39
+ description: "Insert heading level 2"
40
+ },
41
+ "Insert heading level 3": {
42
+ prefix: "heading3",
43
+ body: "### ${1:${TM_SELECTED_TEXT}}",
44
+ description: "Insert heading level 3"
45
+ },
46
+ "Insert heading level 4": {
47
+ prefix: "heading4",
48
+ body: "#### ${1:${TM_SELECTED_TEXT}}",
49
+ description: "Insert heading level 4"
50
+ },
51
+ "Insert heading level 5": {
52
+ prefix: "heading5",
53
+ body: "##### ${1:${TM_SELECTED_TEXT}}",
54
+ description: "Insert heading level 5"
55
+ },
56
+ "Insert heading level 6": {
57
+ prefix: "heading6",
58
+ body: "###### ${1:${TM_SELECTED_TEXT}}",
59
+ description: "Insert heading level 6"
60
+ },
61
+ "Insert unordered list": {
62
+ prefix: "unordered list",
63
+ body: [
64
+ "- ${1:first}",
65
+ "- ${2:second}",
66
+ "- ${3:third}",
67
+ "$0"
68
+ ],
69
+ description: "Insert unordered list"
70
+ },
71
+ "Insert ordered list": {
72
+ prefix: "ordered list",
73
+ body: [
74
+ "1. ${1:first}",
75
+ "2. ${2:second}",
76
+ "3. ${3:third}",
77
+ "$0"
78
+ ],
79
+ description: "Insert ordered list"
80
+ },
81
+ "Insert horizontal rule": {
82
+ prefix: "horizontal rule",
83
+ body: "----------\n",
84
+ description: "Insert horizontal rule"
85
+ },
86
+ "Insert link": {
87
+ prefix: "link",
88
+ body: "[${TM_SELECTED_TEXT:${1:text}}](https://${2:link})$0",
89
+ description: "Insert link"
90
+ },
91
+ "Insert image": {
92
+ prefix: "image",
93
+ body: "![${TM_SELECTED_TEXT:${1:alt}}](https://${2:link})$0",
94
+ description: "Insert image"
95
+ },
96
+ "Insert strikethrough": {
97
+ prefix: "strikethrough",
98
+ body: "~~${1:${TM_SELECTED_TEXT}}~~",
99
+ description: "Insert strikethrough"
100
+ }
101
+ };
102
+
103
+ export { markdown as default };
@@ -0,0 +1,21 @@
1
+ var pgsqlSql = {
2
+ "Create a new Database": {
3
+ prefix: "pgCreateDatabase",
4
+ body: [
5
+ "-- Create a new database called '${1:DatabaseName}'",
6
+ "CREATE DATABASE ${1:DatabaseName}"
7
+ ],
8
+ description: "Create a new PostgreSQL Database"
9
+ },
10
+ "List databases": {
11
+ prefix: "pgListDatabases",
12
+ body: [
13
+ "-- Get a list of databases",
14
+ "SELECT datname FROM pg_database",
15
+ "WHERE datistemplate = false"
16
+ ],
17
+ description: "List PostgreSQL databases"
18
+ }
19
+ };
20
+
21
+ export { pgsqlSql as default };
package/dist/pgsql.js ADDED
@@ -0,0 +1,21 @@
1
+ var pgsql = {
2
+ "Create a new Database": {
3
+ prefix: "pgCreateDatabase",
4
+ body: [
5
+ "-- Create a new database called '${1:DatabaseName}'",
6
+ "CREATE DATABASE ${1:DatabaseName}"
7
+ ],
8
+ description: "Create a new PostgreSQL Database"
9
+ },
10
+ "List databases": {
11
+ prefix: "pgListDatabases",
12
+ body: [
13
+ "-- Get a list of databases",
14
+ "SELECT datname FROM pg_database",
15
+ "WHERE datistemplate = false"
16
+ ],
17
+ description: "List PostgreSQL databases"
18
+ }
19
+ };
20
+
21
+ export { pgsql as default };
@@ -0,0 +1,265 @@
1
+ var phpPhp_codeSnippets = {
2
+ "class …": {
3
+ prefix: "class",
4
+ body: [
5
+ "class ${1:ClassName} ${2:extends ${3:AnotherClass}} ${4:implements ${5:Interface}}",
6
+ "{",
7
+ "\t$0",
8
+ "}",
9
+ ""
10
+ ],
11
+ description: "Class definition"
12
+ },
13
+ "PHPDoc class …": {
14
+ prefix: "doc_class",
15
+ body: [
16
+ "/**",
17
+ " * ${6:undocumented class}",
18
+ " */",
19
+ "class ${1:ClassName} ${2:extends ${3:AnotherClass}} ${4:implements ${5:Interface}}",
20
+ "{",
21
+ "\t$0",
22
+ "}",
23
+ ""
24
+ ],
25
+ description: "Documented Class Declaration"
26
+ },
27
+ "function __construct": {
28
+ prefix: "con",
29
+ body: [
30
+ "${1:public} function __construct(${2:${3:Type} $${4:var}${5: = ${6:null}}}) {",
31
+ "\t\\$this->${4:var} = $${4:var};$0",
32
+ "}"
33
+ ]
34
+ },
35
+ "PHPDoc property": {
36
+ prefix: "doc_v",
37
+ body: [
38
+ "/** @var ${1:Type} $${2:var} ${3:description} */",
39
+ "${4:protected} $${2:var}${5: = ${6:null}};$0"
40
+ ],
41
+ description: "Documented Class Variable"
42
+ },
43
+ "PHPDoc function …": {
44
+ prefix: "doc_f",
45
+ body: [
46
+ "/**",
47
+ " * ${1:undocumented function summary}",
48
+ " *",
49
+ " * ${2:Undocumented function long description}",
50
+ " *",
51
+ "${3: * @param ${4:Type} $${5:var} ${6:Description}}",
52
+ "${7: * @return ${8:type}}",
53
+ "${9: * @throws ${10:conditon}}",
54
+ " **/",
55
+ "${11:public }function ${12:FunctionName}(${13:${14:${4:Type} }$${5:var}${15: = ${16:null}}})",
56
+ "{",
57
+ "\t${0:# code...}",
58
+ "}"
59
+ ],
60
+ description: "Documented function"
61
+ },
62
+ "PHPDoc param …": {
63
+ prefix: "param",
64
+ body: [
65
+ "* @param ${1:Type} ${2:var} ${3:Description}$0"
66
+ ],
67
+ description: "Parameter documentation"
68
+ },
69
+ "function …": {
70
+ prefix: "fun",
71
+ body: [
72
+ "${1:public }function ${2:FunctionName}(${3:${4:${5:Type} }$${6:var}${7: = ${8:null}}})",
73
+ "{",
74
+ "\t${0:# code...}",
75
+ "}"
76
+ ],
77
+ description: "Function"
78
+ },
79
+ "trait …": {
80
+ prefix: "trait",
81
+ body: [
82
+ "/**",
83
+ " * $1",
84
+ " */",
85
+ "trait ${2:TraitName}",
86
+ "{",
87
+ "\t$0",
88
+ "}",
89
+ ""
90
+ ],
91
+ description: "Trait"
92
+ },
93
+ "define(…, …)": {
94
+ prefix: "def",
95
+ body: [
96
+ "define('$1', ${2:'$3'});",
97
+ "$0"
98
+ ],
99
+ description: "Definition"
100
+ },
101
+ "do … while …": {
102
+ prefix: "do",
103
+ body: [
104
+ "do {",
105
+ "\t${0:# code...}",
106
+ "} while (${1:$${2:a} <= ${3:10}});"
107
+ ],
108
+ description: "Do-While loop"
109
+ },
110
+ "while …": {
111
+ prefix: "while",
112
+ body: [
113
+ "while (${1:$${2:a} <= ${3:10}}) {",
114
+ "\t${0:# code...}",
115
+ "}"
116
+ ],
117
+ description: "While-loop"
118
+ },
119
+ "if …": {
120
+ prefix: "if",
121
+ body: [
122
+ "if (${1:condition}) {",
123
+ "\t${0:# code...}",
124
+ "}"
125
+ ],
126
+ description: "If block"
127
+ },
128
+ "if … else …": {
129
+ prefix: "ifelse",
130
+ body: [
131
+ "if (${1:condition}) {",
132
+ "\t${2:# code...}",
133
+ "} else {",
134
+ "\t${3:# code...}",
135
+ "}",
136
+ "$0"
137
+ ],
138
+ description: "If Else block"
139
+ },
140
+ "$… = ( … ) ? … : …": {
141
+ prefix: "if?",
142
+ body: "$${1:retVal} = (${2:condition}) ? ${3:a} : ${4:b} ;",
143
+ description: "Ternary conditional assignment"
144
+ },
145
+ "else …": {
146
+ prefix: "else",
147
+ body: [
148
+ "else {",
149
+ "\t${0:# code...}",
150
+ "}"
151
+ ],
152
+ description: "Else block"
153
+ },
154
+ "elseif …": {
155
+ prefix: "elseif",
156
+ body: [
157
+ "elseif (${1:condition}) {",
158
+ "\t${0:# code...}",
159
+ "}"
160
+ ],
161
+ description: "Elseif block"
162
+ },
163
+ "for …": {
164
+ prefix: "for",
165
+ body: [
166
+ "for ($${1:i}=${2:0}; $${1:i} < $3; $${1:i}++) { ",
167
+ "\t${0:# code...}",
168
+ "}"
169
+ ],
170
+ description: "For-loop"
171
+ },
172
+ "foreach …": {
173
+ prefix: "foreach",
174
+ body: [
175
+ "foreach ($${1:variable} as $${2:key} ${3:=> $${4:value}}) {",
176
+ "\t${0:# code...}",
177
+ "}"
178
+ ],
179
+ description: "Foreach loop"
180
+ },
181
+ "$… = array (…)": {
182
+ prefix: "array",
183
+ body: "$${1:arrayName} = array('$2' => $3${4:,} $0);",
184
+ description: "Array initializer"
185
+ },
186
+ "$… = […]": {
187
+ prefix: "shorray",
188
+ body: "$${1:arrayName} = ['$2' => $3${4:,} $0];",
189
+ description: "Array initializer"
190
+ },
191
+ "… => …": {
192
+ prefix: "keyval",
193
+ body: "'$1' => $2${3:,} $0",
194
+ description: "Key-Value initializer"
195
+ },
196
+ "switch …": {
197
+ prefix: "switch",
198
+ body: [
199
+ "switch (\\$${1:variable}) {",
200
+ "\tcase '${2:value}':",
201
+ "\t\t${3:# code...}",
202
+ "\t\tbreak;",
203
+ "\t$0",
204
+ "\tdefault:",
205
+ "\t\t${4:# code...}",
206
+ "\t\tbreak;",
207
+ "}"
208
+ ],
209
+ description: "Switch block"
210
+ },
211
+ "case …": {
212
+ prefix: "case",
213
+ body: [
214
+ "case '${1:value}':",
215
+ "\t${0:# code...}",
216
+ "\tbreak;"
217
+ ],
218
+ description: "Case Block"
219
+ },
220
+ "$this->…": {
221
+ prefix: "this",
222
+ body: "\\$this->$0;",
223
+ description: "$this->..."
224
+ },
225
+ "echo $this->…": {
226
+ prefix: "ethis",
227
+ body: "echo \\$this->$0;",
228
+ description: "Echo this"
229
+ },
230
+ "Throw Exception": {
231
+ prefix: "throw",
232
+ body: [
233
+ "throw new $1Exception(${2:\"${3:Error Processing Request}\"}${4:, ${5:1}});",
234
+ "$0"
235
+ ],
236
+ description: "Throw exception"
237
+ },
238
+ "Region Start": {
239
+ prefix: "#region",
240
+ body: [
241
+ "#region"
242
+ ],
243
+ description: "Folding Region Start"
244
+ },
245
+ "Region End": {
246
+ prefix: "#endregion",
247
+ body: [
248
+ "#endregion"
249
+ ],
250
+ description: "Folding Region End"
251
+ },
252
+ "Try Catch Block": {
253
+ prefix: "try",
254
+ body: [
255
+ "try {",
256
+ "\t${1://code...}",
257
+ "} catch (${2:\\Throwable} ${3:\\$th}) {",
258
+ "\t${4://throw \\$th;}",
259
+ "}"
260
+ ],
261
+ description: "Try catch block"
262
+ }
263
+ };
264
+
265
+ export { phpPhp_codeSnippets as default };