-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
365 lines (365 loc) · 12.7 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
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
{
"name": "vscode-debug-adapter-apache-camel",
"displayName": "Debug Adapter for Apache Camel by Red Hat",
"description": "Client for the Debug Adapter implementation for Apache Camel",
"license": "Apache-2.0",
"version": "1.5.0",
"preview": false,
"publisher": "redhat",
"icon": "icons/icon128.png",
"repository": {
"type": "git",
"url": "https://github.com/camel-tooling/camel-dap-client-vscode.git"
},
"homepage": "https://github.com/camel-tooling/camel-dap-client-vscode",
"bugs": {
"url": "https://github.com/camel-tooling/camel-dap-client-vscode/issues"
},
"engines": {
"vscode": "^1.82.0"
},
"categories": [
"Debuggers"
],
"keywords": [
"Camel",
"Apache Camel",
"DAP",
"Debug Adapter Protocol",
"Debugging"
],
"main": "./out/extension.js",
"activationEvents": [
"onLanguage:xml",
"workspaceContains:**/*.xml",
"onLanguage:java",
"workspaceContains:**/*.java",
"onLanguage:yaml",
"workspaceContains:**/*.yaml",
"onDebug",
"onLanguage:json",
"onLanguage:jsonc"
],
"contributes": {
"icons": {
"camel-run": {
"description": "Run Camel Application",
"default": {
"fontPath": "./icons/camel-run.woff",
"fontCharacter": "\\E900"
}
},
"camel-debug": {
"description": "Run Camel Application and Debug",
"default": {
"fontPath": "./icons/camel-debug.woff",
"fontCharacter": "\\E900"
}
}
},
"breakpoints": [
{
"language": "xml"
},
{
"language": "java"
},
{
"language": "yaml"
}
],
"configuration": {
"type": "object",
"title": "Debug Adapter for Apache Camel",
"properties": {
"redhat.telemetry.enabled": {
"type": "boolean",
"default": null,
"markdownDescription": "Enable usage data and errors to be sent to Red Hat servers. Read our [privacy statement](https://developers.redhat.com/article/tool-data-collection).",
"scope": "window",
"tags": [
"telemetry"
]
},
"camel.debugAdapter.JBangVersion": {
"type": "string",
"markdownDescription": "Apache Camel JBang CLI version used for internal VS Code JBang commands execution. Camel JBang CLI requirements can differ between versions, it is recommended to use `default` version to ensure all extension features work properly.\n\n**Note**: This change will affect only commands provided by Debug Adapter for Apache Camel extension.",
"default": "4.8.1"
},
"camel.debugAdapter.CamelVersion": {
"type": "string",
"markdownDescription": "Camel version used for internal VS Code Camel JBang CLI commands execution. Camel version can differ from `#camel.debugAdapter.JBangVersion#`. As default Camel version is used `#camel.debugAdapter.JBangVersion#`.\n\nCustom Camel version definition is supported from minimal Camel JBang CLI version `3.20.3`.\n\n**Note**: This change will affect only commands provided by Debug Adapter for Apache Camel extension."
},
"camel.debugAdapter.RedHatMavenRepository": {
"type": "string",
"markdownDescription": "Define Red Hat Maven Repository, which is used automatically in case the `#camel.debugAdapter.CamelVersion#` uses Red Hat productized Camel version (e.g. `3.20.1.redhat-00026`).\n\n**Note**: This change will affect only commands provided by Debug Adapter for Apache Camel extension.",
"default": "https://maven.repository.redhat.com/ga/"
},
"camel.debugAdapter.redHatMavenRepository.global": {
"type": "boolean",
"markdownDescription": "The `#repos` placeholder will be added by default to use also repositories defined in global Camel JBang configuration file.\n\n**Note**: The placeholder is available for versions `3.20.7/3.21` onwards.",
"default": true
},
"camel.debugAdapter.ExtraLaunchParameter": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
},
"additionalProperties": false,
"markdownDescription": "User defined parameter to be applied at every launch. In case of spaces, the values needs to be enclosed with quotes. Default value is `[\"--local-kamelet-dir=.\"]`\n\n**Note**: Excluding `--dev`, `--logging-level`, `--dep`, `--camel-version` and `--repos` which are already being used\n\nFor possible values see:\n\n camel run --help\n\nor\n\njbang camel@apache/camel run --help",
"default": [
"--local-kamelet-dir=.",
"*.xsl"
]
},
"camel.debugAdapter.KubernetesRunParameters": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
},
"additionalProperties": false,
"markdownDescription": "User defined parameters to be applied at every deploy (See [Camel JBang Kubernetes](https://camel.apache.org/manual/camel-jbang-kubernetes.html)). In case of spaces, the values needs to be enclosed with quotes. Default value is `[\"--cluster-type=openshift\"]`\n\n**Note**: Excluding `--camel-version` which is already being set in `#camel.debugAdapter.CamelVersion#`.\n\nFor more possible values see: `camel kubernetes run --help` or `jbang camel@apache/camel kubernetes run --help`",
"default": [
"--cluster-type=openshift"
]
}
}
},
"debuggers": [
{
"type": "apache.camel",
"label": "Apache Camel Debug",
"languages": [
"xml",
"java",
"yaml"
],
"configurationAttributes": {
"attach": {
"properties": {
"attach_pid": {
"type": "string",
"description": "PID of the Camel Application To Debug."
},
"attach_jmx_url": {
"type": "string",
"description": "JMX URL of the Camel Application To Debug. Default is service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi/camel"
}
}
}
},
"initialConfigurations": [
{
"type": "apache.camel",
"request": "attach",
"name": "Attach Camel Debugger"
}
],
"configurationSnippets": [
{
"label": "Camel: Attach Debugger",
"description": "Attach Camel Debugger using default JMX connection URL. It expects that the Camel application to debug is running with JMX exposed, camel-debug available on the classpath and Camel version greater than 3.16.",
"body": {
"name": "Attach Camel Debugger",
"type": "apache.camel",
"request": "attach"
}
},
{
"label": "Camel: Start Camel application and attach Camel debugger",
"description": "Start Camel application and attach Camel debugger. It expects that a VS Code task with name 'Start Camel application' is available. This task is responsible to launch the Camel application with all requirements. To help, a completion is available in .vscode/tasks.json file.",
"body": {
"name": "Attach Camel Debugger after starting the Camel Application using the preLaunchTask specified",
"type": "apache.camel",
"request": "attach",
"preLaunchTask": "Start Camel application"
}
},
{
"label": "Camel: Attach Debugger with JMX URL",
"description": "Attach Camel Debugger using JMX connection URL. It expects that the Camel application to debug is running with JMX exposed, camel-debug available on the classpath and Camel version greater than 3.16.",
"body": {
"name": "Attach Camel Debugger",
"type": "apache.camel",
"request": "attach",
"attach_jmx_url": "service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi/camel"
}
},
{
"label": "Camel: Attach Debugger using PID",
"description": "Attach Camel Debugger using PID of the Camel Application to debug. It expects that the Camel application to debug is running with JMX exposed, camel-debug available on the classpath and Camel version greater than 3.16.",
"body": {
"name": "Attach Camel Debugger",
"type": "apache.camel",
"request": "attach",
"attach_pid": "<replace with PID>"
}
}
]
}
],
"problemMatchers": [
{
"name": "camel.debug.problemMatcher",
"label": "Minimal problem matcher which allows to wait for the JMX endpoint to be ready for the Camel Debugger.",
"owner": "camel",
"pattern": {
"regexp": "^.*$"
},
"severity": "error",
"source": "camel",
"background": {
"activeOnStart": true,
"beginsPattern": "^.*$",
"endsPattern": "^.*(JMX Connector thread started and|Debugger JMXConnector) listening at.*$"
}
}
],
"commands": [
{
"command": "apache.camel.debug.jbang",
"category": "Camel",
"title": "Run with JBang and Debug Opened Camel Integration",
"shortTitle": "Camel JBang: Debug current integration",
"icon": "$(camel-debug)",
"enablement": "resourceFilename =~ /\\.(java|xml|yaml)$/"
},
{
"command": "apache.camel.run.jbang",
"category": "Camel",
"title": "Run with JBang Opened Camel Integration",
"icon": "$(camel-run)",
"enablement": "resourceFilename =~ /\\.(java|xml|yaml)$/"
},
{
"command": "apache.camel.debug.jbang.all.root",
"category": "Camel",
"title": "Run with JBang and Debug All Camel Integrations from workspace root",
"icon": "$(camel-debug)",
"enablement": "resourceFilename =~ /\\.(java|xml|yaml)$/"
},
{
"command": "apache.camel.run.jbang.all.root",
"category": "Camel",
"title": "Run with JBang All Camel Integrations from workspace root",
"icon": "$(camel-run)",
"enablement": "resourceFilename =~ /\\.(java|xml|yaml)$/"
},
{
"command": "apache.camel.debug.jbang.all.containingfolder",
"category": "Camel",
"title": "Run with JBang and Debug All Camel Integrations from containing folder",
"icon": "$(camel-debug)",
"enablement": "resourceFilename =~ /\\.(java|xml|yaml)$/"
},
{
"command": "apache.camel.run.jbang.all.containingfolder",
"category": "Camel",
"title": "Run with JBang All Camel Integrations from containing folder",
"icon": "$(camel-run)",
"enablement": "resourceFilename =~ /\\.(java|xml|yaml)$/"
},
{
"command": "apache.camel.kubernetes.deploy",
"title": "Deploy Integration with Apache Camel Kubernetes Run",
"icon": "$(rocket)"
}
],
"menus": {
"explorer/context": [
{
"command": "apache.camel.debug.jbang",
"when": "resourceExtname =~ /\\.(java|xml|yaml)$/",
"group": "camel.group"
},
{
"command": "apache.camel.run.jbang",
"when": "resourceExtname =~ /\\.(java|xml|yaml)$/",
"group": "camel.group"
}
],
"editor/title/run": [
{
"command": "apache.camel.debug.jbang",
"when": "resourceFilename =~ /\\.(java|xml|yaml)$/",
"group": "4_cameldebug@1"
},
{
"command": "apache.camel.run.jbang",
"when": "resourceFilename =~ /\\.(java|xml|yaml)$/",
"group": "3_camelrun@1"
},
{
"command": "apache.camel.debug.jbang.all.root",
"when": "resourceFilename =~ /\\.(java|xml|yaml)$/",
"group": "4_cameldebug@2"
},
{
"command": "apache.camel.run.jbang.all.root",
"when": "resourceFilename =~ /\\.(java|xml|yaml)$/",
"group": "3_camelrun@2"
},
{
"command": "apache.camel.debug.jbang.all.containingfolder",
"when": "resourceFilename =~ /\\.(java|xml|yaml)$/",
"group": "4_cameldebug@3"
},
{
"command": "apache.camel.run.jbang.all.containingfolder",
"when": "resourceFilename =~ /\\.(java|xml|yaml)$/",
"group": "3_camelrun@3"
}
],
"editor/title": [
{
"command": "apache.camel.kubernetes.deploy",
"when": "resourceFilename =~ /\\.(java|xml|yaml)$/",
"group": "navigation"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./ && npm run lint",
"watch": "tsc -watch -p ./",
"postinstall": "node ./scripts/postinstall.js",
"pretest": "npm run compile",
"preui-test": "npm run compile",
"lint": "eslint src",
"test": "node ./out/test/runTest.js",
"ui-test": "node ./out/ui-test/uitest_runner.js",
"ui-test:deploy": "npm run ui-test -- deploy",
"ui-test:coverage": "npm run ui-test -- coverage"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^2.10.1",
"@types/chai": "^4.3.20",
"@types/fs-extra": "^11.0.4",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.9",
"@types/node": "^14.18.63",
"@types/vscode": "^1.82.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@vscode/test-electron": "^2.3.9",
"async-wait-until": "^2.0.12",
"chai": "^4.5.0",
"eslint": "^9.13.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-chai-friendly": "^1.0.1",
"eslint-plugin-import": "^2.31.0",
"glob": "^11.0.0",
"mocha": "^10.7.3",
"mocha-jenkins-reporter": "^0.4.8",
"mvn-artifact-download": "^6.1.1",
"typescript": "^5.6.3",
"vscode-extension-tester": "^8.8.2"
},
"dependencies": {
"@redhat-developer/vscode-redhat-telemetry": "^0.9.0",
"fs-extra": "^11.2.0",
"jsonc-parser": "^3.3.1"
}
}