-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
508 lines (508 loc) · 17.4 KB
/
Copy pathpackage.json
File metadata and controls
508 lines (508 loc) · 17.4 KB
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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
{
"name": "openedge-abl-formatter",
"displayName": "OpenEdge ABL Formatter",
"description": "Progress OpenEdge (ABL) code formatter",
"version": "0.5.4",
"icon": "resources/Formatter_LOGO.png",
"repository": {
"url": "https://github.com/BalticAmadeus/OpenedgeAblFormatter"
},
"engines": {
"vscode": "^1.107.0"
},
"categories": [
"Formatters"
],
"activationEvents": [
"onLanguage:abl"
],
"main": "./out/extension.js",
"publisher": "BalticAmadeus",
"contributes": {
"commands": [
{
"command": "openedgeAblFormatter.excludeCode",
"title": "Exclude from formatting",
"category": "OpenEdge ABL Formatter"
},
{
"command": "openedgeAblFormatter.reportBug",
"title": "Report Bug",
"category": "OpenEdge ABL Formatter"
},
{
"command": "openedgeAblFormatter.openFormatterPreview",
"title": "Formatter Settings Preview",
"category": "OpenEdge ABL Formatter",
"icon": {
"light": "resources/Formatter_LOGO_32x32.png",
"dark": "resources/Formatter_LOGO_32x32.png"
}
}
],
"menus": {
"editor/title": [
{
"command": "openedgeAblFormatter.openFormatterPreview",
"when": "resourceExtname =~ /\\.(p|cls|i|w)$/i",
"group": "navigation"
}
],
"editor/context": [
{
"command": "openedgeAblFormatter.excludeCode",
"group": "navigation"
}
]
},
"languages": [
{
"id": "abl",
"aliases": [
"OpenEdge",
"OpenEdge ABL",
"Progress OpenEdge"
],
"extensions": [
".p",
".i",
".cls",
".w"
]
}
],
"walkthroughs": [
{
"id": "ablFormatter",
"title": "Abl Formatter",
"description": "OpenEdge ABL Formatter is a OpenEdge (ABL) code formatter.",
"steps": [
{
"id": "telemetryNotice",
"title": "Telemetry notice for OpenEdge ABL Formatter",
"description": "How and What data is collected by Formatter\n [Learn More](https://code.visualstudio.com/docs/editor/telemetry#:~:text=Visual%20Studio%20Code%20collects%20telemetry%20data%2C%20which%20is,slow%20start-up%20times%2C%20and%20to%20prioritize%20new%20features.)",
"media": {
"markdown": "resources/walkthrough/TelemetryNotice.md"
}
},
{
"id": "DisableGlobalTelemetry",
"title": "How to disable all Telemetry",
"description": "Disabling all telemetry that VSCode sends.\n[Global Telemetry Setting](command:toSide:workbench.action.openSettings?%22@tag:telemetry%22)",
"media": {
"image": "resources/walkthrough/DisableGlobalTelemetry.png",
"altText": "Settings for disabling all telemetry sent by VSCode can be found in settings with @tag:telemetry tag"
}
},
{
"id": "DisableAblFormatterTelemetry",
"title": "How to disable only ABL Formatter Telemetry",
"description": "If global setting for telemetry is \"off\" then this setting is ignored and no telemetry is sent.\n[ABL Formatter Telemetry Setting](command:toSide:workbench.action.openSettings?%22Telemetry.ablFormatterTelemetry%22)",
"media": {
"image": "resources/walkthrough/DisableFormatterTelemetry.png",
"altText": "Settings for disabling telemetry sent by OpenEdge ABL Formatter can be found in settings with @tag:telemetry tag"
}
}
]
}
],
"configuration": {
"title": "Abl Formatter",
"properties": {
"AblFormatter.assignFormatting": {
"order": 100,
"type": "boolean",
"default": "true",
"category": "Assign",
"markdownDescription": "Enable/disable ASSIGN statement formatting."
},
"AblFormatter.assignFormattingAssignLocation": {
"order": 101,
"type": "string",
"default": "New",
"enum": [
"New",
"Same"
],
"category": "Assign",
"description": "Should assigns be located on a new line or the same line as the ASSIGN keyword?"
},
"AblFormatter.assignFormattingAlignRightExpression": {
"order": 102,
"type": "string",
"default": "Yes",
"enum": [
"Yes",
"No"
],
"category": "Assign",
"description": "Should right expression be aligned by longest one?"
},
"AblFormatter.assignFormattingEndDotLocation": {
"order": 103,
"type": "string",
"default": "New aligned",
"enum": [
"New",
"New aligned",
"Same"
],
"category": "Assign",
"description": "Should end dot be located on a new line or the same line as the ASSIGN keyword?"
},
"AblFormatter.findFormatting": {
"order": 300,
"type": "boolean",
"default": "true",
"category": "Find",
"description": "Enable FIND formatting"
},
"AblFormatter.forFormatting": {
"order": 400,
"type": "boolean",
"default": "true",
"category": "For",
"description": "Enable FOR formatting"
},
"AblFormatter.caseFormatting": {
"order": 500,
"type": "boolean",
"default": "true",
"category": "Case",
"description": "Enable CASE formatting"
},
"AblFormatter.caseFormattingThenLocation": {
"order": 501,
"type": "string",
"default": "Same",
"enum": [
"New",
"Same"
],
"category": "Case",
"description": "Should THEN clause be on a new line or the same line as the CASE keyword?"
},
"AblFormatter.caseFormattingDoLocation": {
"order": 502,
"type": "string",
"default": "Same",
"enum": [
"New",
"Same"
],
"category": "Case",
"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"
],
"category": "Case",
"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",
"category": "Block",
"description": "Enable block formatting"
},
"AblFormatter.ifFormatting": {
"order": 700,
"type": "boolean",
"default": "true",
"category": "If Statement",
"description": "Enable IF formatting"
},
"AblFormatter.ifFormattingThenLocation": {
"order": 701,
"type": "string",
"default": "Same",
"enum": [
"New",
"Same"
],
"category": "If Statement",
"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"
],
"category": "If Statement",
"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"
],
"category": "If Statement",
"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",
"category": "Temp Table",
"description": "Enable TEMP-TABLE formatting"
},
"AblFormatter.temptableFormattingEndDotLocation": {
"order": 801,
"type": "string",
"default": "Same",
"enum": [
"New",
"Same"
],
"category": "Temp Table",
"description": "Should end dot be located on a new line or the same line as the last TEMP-TABLE line?"
},
"AblFormatter.usingFormatting": {
"order": 900,
"type": "boolean",
"default": "true",
"category": "Using",
"description": "Enable USING formatting"
},
"AblFormatter.usingFormattingFromPropath": {
"order": 901,
"type": "string",
"default": "DoNothing",
"enum": [
"DoNothing",
"Add",
"Remove"
],
"category": "Using",
"description": "Should 'from propath' be added or removed in USING statements automatically?"
},
"AblFormatter.bodyFormatting": {
"order": 1000,
"type": "boolean",
"default": "true",
"category": "Body",
"description": "Enable BODY formatting"
},
"AblFormatter.propertyFormatting": {
"order": 1100,
"type": "boolean",
"default": "true",
"category": "Property",
"description": "Enable PROPERTY formatting"
},
"AblFormatter.ifFunctionFormatting": {
"order": 1200,
"type": "boolean",
"default": "true",
"category": "If Function",
"description": "Enable IF FUNCTION formatting"
},
"AblFormatter.ifFunctionFormattingAddParentheses": {
"order": 1201,
"type": "string",
"default": "No",
"enum": [
"Yes",
"No"
],
"category": "If Function",
"description": "Add parentheses around the expression?"
},
"AblFormatter.ifFunctionFormattingElseLocation": {
"order": 1202,
"type": "string",
"default": "Same",
"enum": [
"New",
"Same"
],
"category": "If Function",
"description": "Should ELSE clause be on a new line or the same line as the IF FUNCTION keyword?"
},
"AblFormatter.enumFormatting": {
"order": 1300,
"type": "boolean",
"default": "true",
"category": "Enum",
"description": "Enable ENUM formatting"
},
"AblFormatter.enumFormattingEndDotLocation": {
"order": 1301,
"type": "string",
"default": "Same",
"enum": [
"New",
"Same"
],
"category": "Enum",
"description": "Should end dot be located on a new line?"
},
"AblFormatter.variableDefinitionFormatting": {
"order": 1400,
"type": "boolean",
"default": "true",
"category": "Variable",
"description": "Enable DEFINE VARIABLE formatting"
},
"AblFormatter.procedureParameterFormatting": {
"order": 1500,
"type": "boolean",
"default": "true",
"category": "Procedure Parameter",
"description": "Enable PROCEDURE PARAMETER formatting"
},
"AblFormatter.functionParameterFormatting": {
"order": 1600,
"type": "boolean",
"default": "true",
"category": "Function Parameter",
"description": "Enable FUNCTION PARAMETER formatting"
},
"AblFormatter.functionParameterFormattingAlignParameterTypes": {
"order": 1601,
"type": "string",
"default": "Yes",
"enum": [
"Yes",
"No"
],
"category": "Function Parameter",
"description": "Align parameter types?"
},
"AblFormatter.arrayAccessFormatting": {
"order": 1700,
"type": "boolean",
"default": "true",
"category": "Array Access",
"description": "Enable ARRAY ACCESS formatting"
},
"AblFormatter.arrayAccessFormattingAddSpaceAfterComma": {
"order": 1701,
"type": "string",
"default": "Yes",
"enum": [
"Yes",
"No"
],
"category": "Array Access",
"description": "Add space after comma?"
},
"AblFormatter.expressionFormatting": {
"order": 1800,
"type": "boolean",
"default": "true",
"category": "Expression",
"description": "Enable EXPRESSION formatting"
},
"AblFormatter.expressionFormattingLogicalLocation": {
"order": 1801,
"type": "string",
"default": "New",
"enum": [
"New",
"Same"
],
"category": "Expression",
"description": "Should logical operators be on a new line or the same line as the expression?"
},
"AblFormatter.statementFormatting": {
"order": 1900,
"type": "boolean",
"default": "true",
"category": "Statement",
"description": "Enable STATEMENT formatting"
},
"AblFormatter.showTreeInfoOnHover": {
"order": 99,
"type": "boolean",
"default": "false",
"description": "Enable table view with tree info on hover"
},
"AblFormatter.showPromotionalNotifications": {
"order": 1950,
"type": "boolean",
"default": true,
"category": "General",
"description": "Enable webinar and marketing announcements."
},
"Telemetry.ablFormatterTelemetry": {
"order": 10200,
"type": "boolean",
"default": true,
"description": "Enable telemetry",
"tags": [
"usesOnlineServices",
"telemetry"
]
}
}
}
},
"scripts": {
"inject-telemetry-key": "replace-in-file \"__TELEMETRY_KEY__\" \"InstrumentationKey=5ee68587-b91d-41b6-ba02-4c65e5348310;IngestionEndpoint=https://northeurope-2.in.applicationinsights.azure.com/;LiveEndpoint=https://northeurope.livediagnostics.monitor.azure.com/;ApplicationId=b19474b9-14c6-4c39-b5ba-0c843036cbb0\" ./out/extension.js",
"reset-telemetry-key": "replace-in-file \"InstrumentationKey=5ee68587-b91d-41b6-ba02-4c65e5348310;IngestionEndpoint=https://northeurope-2.in.applicationinsights.azure.com/;LiveEndpoint=https://northeurope.livediagnostics.monitor.azure.com/;ApplicationId=b19474b9-14c6-4c39-b5ba-0c843036cbb0\" \"__TELEMETRY_KEY__\" ./out/extension.js",
"copy-wasm": "copyfiles -u 2 ./node_modules/web-tree-sitter/*.wasm out",
"package": "npx vsce package && npm run reset-telemetry-key",
"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 && npm run inject-telemetry-key",
"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",
"test-w-metamorphic": "node ./out/test/runTest.js --metamorphic",
"test-symbol": "node ./out/test-symbol/runTest.js",
"test-ast": "node ./out/test-ast/runTest.js",
"test-ast-metamorphic": "node ./out/test-ast/runTest.js --metamorphic",
"test-compilation": "npm run compile && node ./out/test-compilation/runTest.js",
"get-ade-test": "git clone https://github.com/progress/ADE.git resources/ade"
},
"devDependencies": {
"@electron/rebuild": "^0.0.0",
"@types/chai": "^4.3.11",
"@types/mocha": "^10.0.10",
"@types/node": "18.x",
"@types/semver": "^7.7.1",
"@types/vscode": "^1.84.0",
"@typescript-eslint/eslint-plugin": "^8.57.1",
"@typescript-eslint/parser": "^8.57.1",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^2.25.0",
"chai": "^4.3.11",
"copyfiles": "^2.4.1",
"esbuild": "^0.25.2",
"eslint": "^8.52.0",
"glob": "^11.0.1",
"mocha": "^11.3.0",
"replace-in-file": "^8.3.0",
"rimraf": "^5.0.5",
"semver": "^7.7.4",
"typescript": "^5.2.2",
"vscode-extension-tester": "^8.0.2"
},
"dependencies": {
"@microsoft/applicationinsights-common": "^3.4.1",
"@vscode/extension-telemetry": "^1.5.1",
"serialize-javascript": "^7.0.5",
"web-tree-sitter": "^0.20.8"
}
}