-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
212 lines (212 loc) · 8.31 KB
/
package.json
File metadata and controls
212 lines (212 loc) · 8.31 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
{
"name": "clprompter",
"displayName": "Bob Cozzi's CL Prompter and Formatter for IBM i",
"description": "IBM i CL prompting and formatting—rebuilt for modern development",
"version": "0.0.57",
"author": {
"name": "Bob Cozzi",
"url": "https://github.com/bobcozzi"
},
"publisher": "CozziResearch",
"icon": "images/clPrompter.png",
"extensionKind": [
"workspace"
],
"preview": true,
"private": false,
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/bobcozzi/clPrompter.git"
},
"bugs": {
"url": "https://github.com/bobcozzi/clprompter/issues"
},
"homepage": "https://github.com/bobcozzi/clprompter#readme",
"main": "./out/extension.js",
"engines": {
"vscode": "^1.74.0"
},
"activationEvents": [
"onLanguage:clle",
"onLanguage:clp",
"onLanguage:cl",
"onLanguage:cmd",
"onLanguage:bnd",
"onCommand:clPrompter.clPrompter"
],
"contributes": {
"commands": [
{
"command": "clPrompter.clPrompter",
"title": "CL Prompter"
},
{
"command": "clPrompter.formatCurrentCommand",
"title": "Format CL (current line)"
},
{
"command": "clPrompter.formatEntireFile",
"title": "Format CL (file)"
}
],
"keybindings": [
{
"command": "clPrompter.clPrompter",
"key": "f4",
"when": "editorTextFocus && (editorLangId == clle || editorLangId == clp || editorLangId == cl || editorLangId == bnd || editorLangId == cmd)"
}
],
"configuration": {
"title": "CL Prompter for IBM i",
"properties": {
"clPrompter.enableF4Key": {
"type": "boolean",
"default": true,
"description": "Enable F4=Prompt for CL commands"
},
"clPrompter.kwdColor": {
"type": "string",
"format": "color",
"default": "#ffb300",
"description": "Parameter keyword color in prompter. Use CSS color values like ##1a237e, blue, or rgb(34,170,34).",
"pattern": "^(#[0-9A-Fa-f]{6}|#[0-9A-Fa-f]{3}|[a-zA-Z]+|rgb\\(\\d+,\\s*\\d+,\\s*\\d+\\)|rgba\\(\\d+,\\s*\\d+,\\s*\\d+,\\s*[0-9.]+\\))$"
},
"clPrompter.kwdValueColor": {
"type": "string",
"format": "color",
"default": "#1a237e",
"description": "Parameter value color in prompter. Use CSS color values like ##1a237e, blue, or rgb(34,170,34).",
"pattern": "^(#[0-9A-Fa-f]{6}|#[0-9A-Fa-f]{3}|[a-zA-Z]+|rgb\\(\\d+,\\s*\\d+,\\s*\\d+\\)|rgba\\(\\d+,\\s*\\d+,\\s*\\d+,\\s*[0-9.]+\\))$"
},
"clPrompter.kwdColorAutoAdjust": {
"type": "boolean",
"default": true,
"description": "Parameter keyword color Auto-adjust for best contrast in dark/light/high-contrast themes. If false, uses your color exactly as specified."
},
"clPrompter.saveCmdXMLtoFile": {
"type": "boolean",
"default": false,
"description": "Write prompted command XML to the cmdDefn.xml file. Useful for troubleshooting but not recommended for normal use."
},
"clPrompter.savedCmdXMLFileLocation": {
"type": "string",
"default": "${tmpdir}",
"description": "Directory where cmdDefn.xml file is written. Use ${tmpdir} for system temp, ${userHome} for home directory, or an absolute path."
},
"clPrompter.savePrompterHTMLtoFile": {
"type": "boolean",
"default": false,
"description": "Save prompter HTML to clPrompt-<cmdName>.html file for diagnostic purposes. This file can be sent to support for troubleshooting issues with the prompter."
},
"clPrompter.savedPrompterHTMLFileLocation": {
"type": "string",
"default": "${tmpdir}",
"description": "Directory where clPrompt-<cmdName>.html file is written. Use ${tmpdir} for system temp, ${userHome} for home directory, or an absolute path."
},
"clPrompter.convertParmValueToUpperCase": {
"type": "boolean",
"default": true,
"description": "Convert CL variables, operators (*BCAT, *TCAT, etc.), and built-in functions (%SUBST, %TRIM, etc.) within parameter values to uppercase. When true, text like '&pickles *bcat %trim(x)' becomes '&PICKLES *BCAT %TRIM(x)'. When false, preserves original case. Applies when returning from the prompter."
},
"clPrompter.convertCmdAndParmNameCase": {
"type": "string",
"default": "*UPPER",
"enum": [
"*UPPER",
"*LOWER",
"*NONE"
],
"description": "Case conversion for CL command names and parameter keywords. *UPPER = uppercase (CHGVAR VAR(...)), *LOWER = lowercase (chgvar var(...)), *NONE = no change. Applies when returning from the prompter and when formatting CL source."
},
"clPrompter.formatIndentComments": {
"type": "string",
"default": "*YES",
"enum": [
"*YES",
"*NO"
],
"description": "Indent comments. *YES = indent comments, *NO = leave at column 1."
},
"clPrompter.formatLabelPosition": {
"type": "number",
"default": 2,
"minimum": 1,
"description": "Position of the optional command label (1-10 characters followed by colon). Default: 2."
},
"clPrompter.formatCmdPosition": {
"type": "number",
"default": 14,
"minimum": 1,
"description": "Position where the CL command name starts. Must be at least 1 space after the label. Default: 14."
},
"clPrompter.formatKwdPosition": {
"type": "number",
"default": 25,
"minimum": 0,
"description": "Position where the first parameter/keyword starts. Use 0 for one space after command name. Default: 25."
},
"clPrompter.formatContinuePosition": {
"type": "number",
"default": 27,
"minimum": 1,
"description": "Position where continuation lines start. Normally 2 positions after formatKwdPosition. Default: 27."
},
"clPrompter.formatRightMargin": {
"type": "number",
"default": 70,
"minimum": 40,
"description": "Last position where data or continuation symbols (+ or -) may appear. Default: 72."
},
"clPrompter.sessionWarmupCommand": {
"type": "string",
"default": "DSPLIBL",
"description": "IBM i ILE command to run silently when a connection is established, to pre-warm the Mapepire/JVM service job. Leave blank to disable. Default: DSPLIBL."
}
}
},
"menus": {
"editor/context": [
{
"command": "clPrompter.clPrompter",
"when": "editorLangId == clle || editorLangId == clp || editorLangId == cmd || editorLangId == cl || editorLangId == bnd || editorLangId == cmd",
"group": "navigation"
},
{
"command": "clPrompter.formatCurrentCommand",
"when": "editorTextFocus && (editorLangId == clle || editorLangId == clp || editorLangId == cl || editorLangId == bnd || editorLangId == cmd)",
"group": "1_modification"
},
{
"command": "clPrompter.formatEntireFile",
"when": "editorTextFocus && (editorLangId == clle || editorLangId == clp || editorLangId == cl || editorLangId == bnd || editorLangId == cmd)",
"group": "1_modification"
}
]
}
},
"scripts": {
"compile-webview": "tsc -p tsconfig.webview.json",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint",
"watch": "tsc -w -p ./",
"copy-assets": "cp -r src/webview-assets/* media/",
"build": "npm run compile && npm run compile-webview && npm run copy-assets",
"test:api": "tsc src/testAPICall.ts --outDir out --module commonjs --target es2020 --esModuleInterop --skipLibCheck && node out/testAPICall.js"
},
"devDependencies": {
"@types/node": "20.8.10",
"@types/vscode": "^1.73.0",
"@types/xmldom": "^0.1.34",
"esbuild": "^0.25.6",
"typescript": "^5.8.2"
},
"dependencies": {
"@halcyontech/vscode-ibmi-types": "^2.16.0",
"@vscode-elements/elements": "^2.4.0",
"@vscode/webview-ui-toolkit": "^1.4.0",
"@xmldom/xmldom": "^0.9.8",
"xml2js": "^0.6.2"
}
}