forked from bobcozzi/rpgiv2free
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
304 lines (304 loc) · 10.9 KB
/
Copy pathpackage.json
File metadata and controls
304 lines (304 loc) · 10.9 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
{
"name": "rpgiv2free",
"displayName": "Bob Cozzi's RPG IV to RPG Free Conversion",
"description": "Bob Cozzi's Convert RPG IV fixed-format code to free-format code.",
"author": {
"name": "Bob Cozzi",
"url": "https://github.com/bobcozzi"
},
"publisher": "CozziResearch",
"icon": "images/rpgiv2free.png",
"preview": false,
"private": false,
"version": "1.0.0",
"license": "SEE LICENSE in license.txt",
"engines": {
"vscode": "^1.70.0",
"node": ">=16.0.0"
},
"keywords": [
"ibmi",
"rpgle",
"rpgiv",
"iseries",
"ilerpg",
"rpgfree",
"as400"
],
"repository": {
"type": "git",
"url": "https://github.com/bobcozzi/rpgiv2free.git"
},
"bugs": {
"url": "https://github.com/bobcozzi/rpgiv2free/issues"
},
"homepage": "https://github.com/bobcozzi/rpgiv2free#readme",
"categories": [
"Programming Languages",
"Linters",
"Formatters"
],
"contributes": {
"commands": [
{
"command": "rpgiv2free.convertToRPGFree",
"title": "Convert RPG IV to Free Format"
},
{
"command": "rpgiv2free.toggleRPGSmartTab",
"title": "Toggle Smart Tab"
}
],
"keybindings": [
{
"key": "enter",
"command": "rpgiv2free.smartEnter",
"when": "editorTextFocus && (editorLangId == 'rpgle' || editorLangId == 'sqlrpgle') && !suggestWidgetVisible && !inSnippetMode"
},
{
"key": "tab",
"command": "rpgsmarttab.tab",
"when": "editorTextFocus && (editorLangId == 'rpgle' || editorLangId == 'sqlrpgle') && !suggestWidgetVisible && !inSnippetMode"
},
{
"key": "shift+tab",
"command": "rpgsmarttab.shiftTab",
"when": "editorTextFocus && (editorLangId == 'rpgle' || editorLangId == 'sqlrpgle') && !suggestWidgetVisible && !inSnippetMode"
}
],
"menus": {
"editor/context": [
{
"command": "rpgiv2free.convertToRPGFree",
"when": "resourceExtname =~ /\\.rpg(le)?|\\.sqlrpgle/i",
"group": "navigation"
}
]
},
"configuration": {
"title": "RPGIV to Free Format Conversion",
"properties": {
"rpgiv2free.convertBINTOINT": {
"type": "number",
"title": "Enabled Convert BIN to INT",
"default": 2,
"enum": [
0,
1,
2
],
"enumDescriptions": [
"0 - Do not convert to Integer (disable)",
"1 - Always convert B (binary) fields to Integer",
"2 - Convert to Integer only when decimal positions = 0"
],
"description": "Controls how RPG IV B ('binary') fields are converted to integers."
},
"rpgiv2free.VerifyCode4IBMi": {
"type": "boolean",
"title": "Verify CODE for IBM i Extension API",
"default": true,
"description": "Verify and log Code4IBMi Extension is running (Debug mode only)."
},
"rpgiv2free.altMOVEL": {
"type": "boolean",
"title": "Include alternative MOVEL conversion as comment",
"default": true,
"description": "Insert comment with an alternative MOVEL conversion"
},
"rpgiv2free.indyMOVEAStyle": {
"type": "string",
"title": "MOVEA Conversion Style",
"enum": [
"FOR",
"LIST"
],
"enumDescriptions": [
"For Loop - Convert MOVEA to a FOR loop",
"List Assignment - Convert MOVEA to %SUBARR(*IN:n) = %LIST('1':'0') style."
],
"default": "LIST",
"description": "Choose how to convert MOVEA operations when setting indicators."
},
"rpgiv2free.addINZ": {
"type": "boolean",
"title": "Include INZ when converting data structures",
"default": true,
"description": "Add INZ keyword to data structures that do not have one."
},
"rpgiv2free.maxFreeFormatLineLength": {
"type": "number",
"title": "Maximum record length for free format",
"default": 76,
"minimum": 72,
"maximum": 110,
"description": "Max length for converted free format lines (right margin)."
},
"rpgiv2free.indentFirstLine": {
"type": "number",
"title": "First line Indent Space count",
"default": 10,
"minimum": 0,
"maximum": 64,
"description": "First free format line indent/spaces (in bytes)."
},
"rpgiv2free.indentContinuedLines": {
"type": "number",
"title": "Continuation Indent Space count",
"default": 12,
"minimum": 0,
"maximum": 64,
"description": "Secondary free format lines indent/spaces (in bytes)."
},
"rpgiv2free.indentDirectives": {
"type": "number",
"title": "Indent Compiler Directives",
"default": 8,
"minimum": 7,
"maximum": 32,
"description": "Number of columns to indent /include, /copy etc."
},
"rpgiv2free.maxRPGSourceLength": {
"type": "number",
"title": "Est maximum line length for RPG source",
"default": 80,
"minimum": 80,
"maximum": 240,
"description": "Maximum record length for RPG source files."
},
"rpgiv2free.AddEXTDeviceFlag": {
"type": "boolean",
"title": "Add *EXT to device ID on File specs",
"default": false,
"description": "Add *EXT to DISK, WORKSTN, etc. when converting externally described files."
},
"rpgiv2free.RemoveFREEDirective": {
"type": "boolean",
"title": "Comment-out /FREE and /END-FREE directives",
"default": true,
"markdownDescription": "Remove old /free and /end-free directives** \nThis will comment them out in RPG source."
},
"rpgiv2free.ReplaceCOPYwithINCLUDE_RPG": {
"type": "boolean",
"title": "Replace /COPY with /INCLUDE [RPGLE]",
"default": true,
"description": "Replaces /copy statements in RPGLE source types with the more modern /include directive."
},
"rpgiv2free.ReplaceCOPYwithINCLUDE_SQLRPG": {
"type": "boolean",
"title": "Replace /COPY with /INCLUDE [SQLRPG]",
"default": false,
"description": "Replaces /copy statements in SQLRPG* source types with the more modern /include directive."
},
"rpgiv2free.RemoveOLDDirectives": {
"type": "boolean",
"title": "Remove old deprecated legacy compiler directives",
"default": true,
"description": "Remove /SPACE, /SKIP, /EJECT and /TITLE directives."
},
"rpgiv2free.tempVarName1": {
"type": "string",
"title": "Name of Length variable for string opcodes",
"default": "f2f_tempSTG",
"minLength": 5,
"maxLength": 32,
"description": "Fixed to Free format Temp/Workfield name to generate for CAT, SUBST etc, opcode conversions."
},
"rpgiv2free.tempVarName2": {
"type": "string",
"title": "Name of DO/FOR Loop counter variable",
"default": "f2f_tempDO",
"minLength": 5,
"maxLength": 32,
"description": "Fixed to Free format Temp/Workfield name to generate for DO/FOR operations."
},
"rpgiv2free.enableRPGSmartEnter": {
"type": "string",
"title": "Enable RPG non-destructive Smart Enter key",
"enum": [
"fixedOnly",
"fixedAndFree",
"*ALL",
"disable"
],
"enumDescriptions": [
"Enable Smart Enter only for fixed-format RPG",
"Enable Smart Enter for both fixed-format and free-format RPG",
"Enable Smart Enter for all source file types (RPG and non-RPG)",
"Disable Smart Enter entirely"
],
"default": "fixedOnly",
"description": "Controls the RPG Smart Enter key behavior."
},
"rpgiv2free.enableRPGCopySpecOnEnter": {
"type": "boolean",
"title": "Copy Fixed Format Spec to next line on Enter",
"default": true,
"description": "When RPG Smart Enter is enabled, copy the RPG spec letter to column 6 and align the cursor after it."
},
"rpgiv2free.enableRPGSmartTab": {
"type": "boolean",
"title": "Enable Smart Columnar Tab in fixed format",
"default": true,
"description": "Enable RPG Smart Tab/Shift+Tab navigation in RPG IV fixed-format source lines."
},
"rpgiv2free.verticalTabColor_DarkMode": {
"type": "string",
"format": "color",
"default": "#50FF5080",
"description": "Fixed format RPG IV vertical columnar boundary ruler color for dark mode editing."
},
"rpgiv2free.verticalTabColor_LightMode": {
"type": "string",
"format": "color",
"default": "#008000B3",
"description": "Fixed format RPG IV vertical columnar boundary ruler color for light mode editing."
},
"rpgiv2free.verticalTabWidth_LightMode": {
"type": "number",
"default": 1,
"description": "Line width (in pixels) for vertical tab stops in light mode."
},
"rpgiv2free.verticalTabWidth_DarkMode": {
"type": "number",
"default": 1,
"description": "Line width (in pixels) for vertical tab stops in dark mode."
}
}
}
},
"main": "./out/extension.js",
"activationEvents": [
"onLanguage:rpgle",
"onLanguage:sqlrpgle",
"onCommand:rpgiv2free.convertToRPGFree",
"onCommand:rpgsmarttab.tab",
"onCommand:rpgsmarttab.shiftTab",
"onCommand:rpgiv2free.toggleRPGSmartTab"
],
"scripts": {
"vscode:prepublish": "npm run compile",
"build": "tsc",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"fix": "eslint . --fix",
"publish:vsx": "ovsx publish --pat $OPENVSX_PAT",
"publish:ms": "vsce publish",
"publish:all": "npm run fix && npm run compile && npm run publish:ms && npm run publish:vsx"
},
"devDependencies": {
"@eslint/json": "^0.12.0",
"@eslint/markdown": "^6.4.0",
"@types/node": "^22.15.3",
"@types/vscode": "^1.70.0",
"@typescript-eslint/eslint-plugin": "^8.32.0",
"@typescript-eslint/parser": "^8.32.0",
"eslint": "^9.26.0",
"typescript": "^4.8.0"
},
"dependencies": {
"@halcyontech/vscode-ibmi-types": "^2.15.3",
"odbc": "^2.4.9",
"sql-formatter": "^15.5.2"
}
}