-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
315 lines (315 loc) · 9.59 KB
/
package.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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
{
"name": "abl-formatter",
"displayName": "Abl Formatter",
"description": "Progress OpenEdge (ABL) code formatter",
"version": "0.0.2",
"icon": "resources/Formatter_LOGO.png",
"repository": {
"url": "https://github.com/BalticAmadeus/AblFormatter"
},
"engines": {
"vscode": "^1.84.0"
},
"categories": [
"Formatters"
],
"activationEvents": [
"onLanguage:abl"
],
"main": "./out/extension.js",
"publisher": "BalticAmadeus",
"contributes": {
"languages": [
{
"id": "abl",
"aliases": [
"OpenEdge",
"OpenEdge ABL",
"Progress OpenEdge"
],
"extensions": [
".p",
".i",
".cls",
".w"
]
}
],
"configuration": {
"title": "AblFormatter",
"properties": {
"AblFormatter.assignFormatting": {
"order": 100,
"type": "boolean",
"default": "true",
"markdownDescription": "Enable/disable ASSIGN statement formatting."
},
"AblFormatter.assignFormattingAssignLocation": {
"order": 101,
"type": "string",
"default": "New",
"enum": [
"New",
"Same"
],
"description": "Should assigns be located on same or new line after ASSIGN keyword?"
},
"AblFormatter.assignFormattingAlignRightExpression": {
"order": 102,
"type": "string",
"default": "Yes",
"enum": [
"Yes",
"No"
],
"description": "Should right expression be aligned by longest one?"
},
"AblFormatter.assignFormattingEndDotLocation": {
"order": 103,
"type": "string",
"default": "New aligned",
"enum": [
"New",
"New aligned",
"Same"
],
"description": "Should end dot be located on same or new line after ASSIGN statement?"
},
"AblFormatter.defineFormatting": {
"order": 200,
"type": "boolean",
"default": "true",
"description": "Enable DEFINE formatting"
},
"AblFormatter.findFormatting": {
"order": 300,
"type": "boolean",
"default": "true",
"description": "Enable FIND formatting"
},
"AblFormatter.forFormatting": {
"order": 400,
"type": "boolean",
"default": "true",
"description": "Enable FOR formatting"
},
"AblFormatter.caseFormatting": {
"order": 500,
"type": "boolean",
"default": "true",
"description": "Enable CASE formatting"
},
"AblFormatter.caseFormattingThenLocation": {
"order": 501,
"type": "string",
"default": "Same",
"enum": [
"New",
"Same"
],
"description": "Should THEN clause be on a new line or the same line as the WHEN keyword?"
},
"AblFormatter.caseFormattingDoLocation": {
"order": 502,
"type": "string",
"default": "New",
"enum": [
"New",
"Same"
],
"description": "Should DO block be on a new line or the same line as the THEN keyword?"
},
"AblFormatter.caseFormattingStatementLocation": {
"order": 503,
"type": "string",
"default": "New",
"enum": [
"New",
"Same"
],
"description": "Should the first statement in a WHEN block be on a new line or the same line?"
},
"AblFormatter.blockFormatting": {
"order": 600,
"type": "boolean",
"default": "true",
"description": "Enable block formatting"
},
"AblFormatter.ifFormatting": {
"order": 700,
"type": "boolean",
"default": "true",
"description": "Enable IF formatting"
},
"AblFormatter.ifFormattingThenLocation": {
"order": 701,
"type": "string",
"default": "Same",
"enum": [
"New",
"Same"
],
"description": "Should THEN clause be on a new line or the same line as the IF keyword?"
},
"AblFormatter.ifFormattingDoLocation": {
"order": 702,
"type": "string",
"default": "Same",
"enum": [
"New",
"Same"
],
"description": "Should DO block be on a new line or the same line as the THEN keyword?"
},
"AblFormatter.ifFormattingStatementLocation": {
"order": 703,
"type": "string",
"default": "Same",
"enum": [
"New",
"Same"
],
"description": "Should the first statement in an IF block be on a new line or the same line?"
},
"AblFormatter.temptableFormatting": {
"order": 800,
"type": "boolean",
"default": "true",
"description": "Enable TEMP-TABLE formatting"
},
"AblFormatter.usingFormatting": {
"order": 900,
"type": "boolean",
"default": "true",
"description": "Enable USING formatting"
},
"AblFormatter.bodyFormatting": {
"order": 1000,
"type": "boolean",
"default": "true",
"description": "Enable BODY formatting"
},
"AblFormatter.propertyFormatting": {
"order": 1100,
"type": "boolean",
"default": "true",
"description": "Enable property formatting"
},
"AblFormatter.ifFunctionFormatting": {
"order": 1200,
"type": "boolean",
"default": "true",
"description": "Enable IF FUNCTION formatting"
},
"AblFormatter.ifFunctionFormattingAddParentheses": {
"order": 1201,
"type": "string",
"default": "No",
"enum": [
"Yes",
"No"
],
"description": "Add parentheses around the expression?"
},
"AblFormatter.ifFunctionFormattingElseLocation": {
"order": 1202,
"type": "string",
"default": "Same",
"enum": [
"New",
"Same"
],
"description": "Add a new line before the ELSE?"
},
"AblFormatter.enumFormatting": {
"order": 1300,
"type": "boolean",
"default": "true",
"description": "Enable ENUM formatting"
},
"AblFormatter.enumFormattingEndDotLocation": {
"order": 1301,
"type": "string",
"default": "Same",
"enum": [
"New",
"Same"
]
},
"AblFormatter.variableDefinitionFormatting": {
"order": 1400,
"type": "boolean",
"default": "true",
"description": "Enable DEFINE VARIABLE formatting"
},
"AblFormatter.procedureParameterFormatting": {
"order": 1500,
"type": "boolean",
"default": "true",
"description": "Enable PROCEDURE PARAMETER formatting"
},
"AblFormatter.functionParameterFormatting": {
"order": 1600,
"type": "boolean",
"default": "true",
"description": "Enable FUNCTION PARAMETER formatting"
},
"AblFormatter.functionParameterFormattingAlignParameterTypes": {
"order": 1601,
"type": "string",
"default": "Yes",
"enum": [
"Yes",
"No"
],
"description": "Align parameter types?"
},
"AblFormatter.showTreeInfoOnHover": {
"order": 10100,
"type": "boolean",
"default": "true",
"description": "Enable table view with tree info on hover"
}
}
}
},
"scripts": {
"copy-wasm": "copyfiles -u 2 ./node_modules/web-tree-sitter/*.wasm out",
"delete-out": "rimraf out",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node && npm run copy-wasm",
"build": "npm run esbuild",
"esbuild": "npm run esbuild-base -- --sourcemap",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"prep-ui-test": "npm run delete-out && npm run compile && extest setup-tests -s ./.test_dir -e ./.ext_dir -c 1.85.1 -t stable",
"run-ui-test": "npm run copy-test-settings && npm run copy-test-cases && npm run compile && extest run-tests './out/ui-test/testRunner.js' -s ./.test_dir -e ./.ext_dir -c 1.85.1 -t stable",
"copy-test-cases": "copyfiles -u 2 ./resources/samples/* .test_dir/samples",
"copy-test-settings": "copyfiles -u 2 ./resources/samples/.vscode/* .test_dir/samples/",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@electron/rebuild": "^3.3.1",
"@types/chai": "^4.3.11",
"@types/mocha": "^10.0.3",
"@types/node": "18.x",
"@types/vscode": "^1.84.0",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@vscode/test-electron": "^2.3.6",
"chai": "^4.3.11",
"copyfiles": "^2.4.1",
"esbuild": "0.19.11",
"eslint": "^8.52.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"rimraf": "^5.0.5",
"typescript": "^5.2.2",
"vscode-extension-tester": "^6.0.0"
},
"dependencies": {
"web-tree-sitter": "0.20.8"
}
}