forked from bobcozzi/rpgiv2free
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxpackage.json
More file actions
238 lines (238 loc) · 8.29 KB
/
Copy pathxpackage.json
File metadata and controls
238 lines (238 loc) · 8.29 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
{
"name": "rpgiv2free",
"displayName": "Bob Cozzi's RPG IV to RPG Free Conversion extension for VS CODE for i",
"description": "Bob Cozzi's Convert RPG IV fixed-format code to free-format code. Extension for Visual Studio CODE for i.",
"icon": "images/rpgiv2free.png",
"preview": true,
"private": false,
"publisher": "CozziResearch",
"version": "0.6.7",
"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": [
"Other"
],
"contributes": {
"commands": [
{
"command": "rpgiv2free.convertToRPGFree",
"title": "Convert RPG IV to Free Format"
},
{
"command": "rpgiv2free.toggleSmartTab",
"title": "Toggle Smart Tab"
}
],
"keybindings": [
{
"key": "enter",
"command": "rpgiv2free.smartEnter",
"when": "editorTextFocus && editorLangId == rpgle || editorLangId == sqlrpgle"
},
{
"key": "tab",
"command": "rpgsmarttab.tab",
"when": "editorTextFocus && editorLangId =~ /rpgle|sqlrpgle/i && !editorHasSnippetCompletions && !editorHasCompletionItemProvider"
},
{
"key": "tab",
"command": "rpgsmarttab.tab",
"when": "editorTextFocus && editorLangId =~ /rpgle|sqlrpgle/i"
},
{
"key": "shift+tab",
"command": "rpgsmarttab.shiftTab",
"when": "editorTextFocus && editorLangId =~ /rpgle|sqlrpgle/i && !editorHasSnippetCompletions && !editorHasCompletionItemProvider"
},
{
"key": "shift+tab",
"command": "rpgsmarttab.shiftTab",
"when": "editorTextFocus && editorLangId =~ /rpgle|sqlrpgle/i"
}
],
"menus": {
"editor/context": [
{
"command": "rpgiv2free.convertToRPGFree",
"when": "resourceExtname =~ /rpg(le)?|sqlrpgle/i",
"group": "navigation"
}
]
}
},
"configuration": {
"type": "object",
"title": "RPG IV Free Format Converter Settings",
"properties": {
"rpgiv2free.convertBINTOINT": {
"type": "number",
"default": 2,
"enum": [
0,
1,
2
],
"enumDescriptions": [
"0 - Do not convert to Integer",
"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.addINZ": {
"type": "boolean",
"default": true,
"description": "Add INZ keyword to data structures that do not have one."
},
"rpgiv2free.maxFreeFormatLineLength": {
"type": "number",
"default": 76,
"description": "Max length for converted free format lines (right margin)."
},
"rpgiv2free.indentFirstLine": {
"type": "number",
"default": 10,
"description": "First free format line indent/spaces (in bytes)."
},
"rpgiv2free.indentContinuedLines": {
"type": "number",
"default": 12,
"description": "Secondary free format lines indent/spaces (in bytes)."
},
"rpgiv2free.maxRPGSourceLength": {
"type": "number",
"default": 100,
"description": "Maximum record length for RPG source files."
},
"rpgiv2free.AddEXTDeviceFlag": {
"type": "boolean",
"default": true,
"description": "Add *EXT to DISK, WORKSTN, etc. when converting externally described files."
},
"rpgiv2free.RemoveFREEDirective": {
"type": "boolean",
"default": true,
"markdownDescription": "**Remove old /free and /end-free directives** \nThis will comment them out in RPG source."
},
"rpgiv2free.ReplaceCOPYwithINCLUDE_RPG": {
"type": "boolean",
"default": true,
"description": "Replaces /copy statements in RPGLE source types with the more modern /include directive."
},
"rpgiv2free.ReplaceCOPYwithINCLUDE_SQLRPG": {
"type": "boolean",
"default": false,
"description": "Replaces /copy statements in SQLRPG* source types with the more modern /include directive."
},
"rpgiv2free.tempVarName1": {
"type": "string",
"default": "f2f_tempSTG",
"description": "Fixed to Free format Temp/Workfield name to generate for CAT, SUBST etc, opcode conversions."
},
"rpgiv2free.tempVarName2": {
"type": "string",
"default": "f2f_tempDO",
"description": "Fixed to Free format Temp/Workfield name to generate for DO operations."
},
"rpgiv2free.enableRPGSmartEnter": {
"type": "string",
"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",
"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",
"default": true,
"description": "Enable RPG Smart Tab/Shift+Tab navigation in RPG IV fixed-format source lines."
},
"rpgiv2free.verticalTabColor_DarkMode": {
"type": "color",
"default": "rgba(80, 255, 80, 0.5)",
"description": "Fixed format RPG IV vertical columnar boundary ruler color for dark mode editing."
},
"rpgiv2free.verticalTabColor_LightMode": {
"type": "color",
"default": "rgba(0, 128, 0, 0.7)",
"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": {
"sql-formatter": "^15.5.2"
}
}