-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpackage.json
394 lines (394 loc) · 12.4 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
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
{
"name": "vscode-apache-camel",
"displayName": "Language Support for Apache Camel by Red Hat",
"description": "Provides completion, validation and documentation features for Apache Camel URI elements.",
"license": "Apache-2.0",
"version": "1.9.0",
"preview": false,
"publisher": "redhat",
"icon": "icons/icon128.png",
"maintainers": [
{
"name": "Aurélien Pupier",
"email": "[email protected]"
},
{
"name": "Lars Heinemann",
"email": "[email protected]"
}
],
"author": {
"name": "Red Hat"
},
"bugs": {
"url": "https://github.com/camel-tooling/camel-lsp-client-vscode/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/camel-tooling/camel-lsp-client-vscode.git"
},
"homepage": "https://github.com/camel-tooling/camel-lsp-client-vscode",
"keywords": [
"Camel",
"LSP",
"Language Server Protocol",
"Tool",
"Camel YAML"
],
"engines": {
"vscode": "^1.82.0"
},
"categories": [
"Programming Languages",
"Linters"
],
"activationEvents": [
"onStartupFinished",
"onLanguage:xml",
"workspaceContains:**/*.xml",
"onLanguage:java",
"workspaceContains:**/*.java",
"onLanguage:groovy",
"workspaceContains:**/*.groovy",
"onLanguage:properties",
"onLanguage:spring-boot-properties",
"onLanguage:quarkus-properties",
"workspaceContains:**/*.properties",
"onLanguage:kotlin",
"workspaceContains:**/*.kts",
"onLanguage:javascript",
"workspaceContains:**/*.js",
"onLanguage:yaml",
"workspaceContains:**/*.yaml",
"workspaceContains:**/*.yml",
"onLanguage:json",
"workspaceContains:**/tasks.json"
],
"main": "./out/src/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Language Support for Apache Camel",
"properties": {
"camel.Camel catalog version": {
"type": "string",
"markdownDescription": "The Camel catalog version used for providing Language Support for Apache Camel.\n\nYou can check available Camel catalogs at the following links: [the Maven Central repository](https://repo1.maven.org/maven2/org/apache/camel/camel-catalog/) and [the Maven Red Hat GA repository](https://maven.repository.redhat.com/ga/org/apache/camel/camel-catalog/).\n\ne.g. `3.20.5` or `3.20.1.redhat-00026`\n\n**Note:** Depending on the connection speed, it can take several minutes to have it applied."
},
"camel.Camel catalog runtime provider": {
"type": "string",
"description": "The Camel catalog runtime provider used for providing Language support for Apache Camel.",
"enum": [
"DEFAULT",
"SPRINGBOOT",
"QUARKUS",
"KARAF"
]
},
"camel.extra-components": {
"type": "array",
"description": "(Experimental)List of additional components to include in the Camel Catalog described with a Json list respecting Camel catalog syntax."
},
"camel.Kafka Connection URL": {
"type": "string",
"description": "Kafka Connection URl used by the Camel language Server to provide dynamic completion.",
"default": "localhost:9092"
},
"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.languageSupport.JBangVersion": {
"type": "string",
"markdownDescription": "Apache Camel JBang version used for internal VS Code JBang commands execution. Camel JBang 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 Language Support for Apache Camel extension.",
"default": "4.9.0"
},
"camel.ls.java.home": {
"type": [
"string",
"null"
],
"default": null,
"description": "Specifies the folder path to the JDK (17 or more recent) used to launch the Camel Language Server.\n\nOn Windows, backslashes must be escaped, i.e.\n\"camel.ls.java.home\":\"C:\\\\Program Files\\\\Java\\\\jdk17.0_3\"",
"scope": "machine-overridable"
}
}
},
"languages": [
{
"id": "xml",
"extensions": [
".xml"
]
},
{
"id": "java",
"extensions": [
".java"
]
},
{
"id": "groovy",
"extensions": [
".groovy"
]
},
{
"id": "properties",
"extensions": [
".properties"
]
},
{
"id": "spring-boot-properties",
"extensions": [
"application.properties"
]
},
{
"id": "kotlin",
"extensions": [
".kts"
]
},
{
"id": "javascript",
"extensions": [
".js"
]
},
{
"id": "yaml",
"extensions": [
".yaml",
".yml"
]
}
],
"commands": [
{
"command": "camel.new.file",
"title": "New Camel File",
"category": "Camel",
"enablement": "resource != undefined"
},
{
"command": "camel.jbang.routes.yaml",
"title": "Create a Camel Route using YAML DSL",
"category": "Camel",
"enablement": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.java",
"title": "Create a Camel Route using Java DSL",
"category": "Camel",
"enablement": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.xml",
"title": "Create a Camel Route using XML DSL",
"category": "Camel",
"enablement": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.project.new",
"title": "Create a Camel project",
"category": "Camel",
"enablement": "false"
},
{
"command": "camel.jbang.project.quarkus.new",
"title": "Create a Camel Quarkus project",
"category": "Camel"
},
{
"command": "camel.jbang.project.springboot.new",
"title": "Create a Camel on SpringBoot project",
"category": "Camel"
},
{
"command": "camel.jbang.routes.yaml.fromopenapi",
"title": "Create a Camel route from OpenAPI using YAML DSL",
"category": "Camel",
"enablement": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.kamelet.yaml",
"title": "Create a Kamelet using YAML DSL",
"category": "Camel",
"enablement": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.pipe.yaml",
"title": "Create a Custom Resource Pipe using YAML DSL",
"category": "Camel",
"enablement": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.transform.route.yaml",
"title": "Transform a Camel Route to YAML DSL",
"category": "Camel",
"enablement": "resourceFilename =~ /\\.(java|xml|yaml)$/"
},
{
"command": "camel.jbang.transform.route.xml",
"title": "Transform a Camel Route to XML DSL",
"category": "Camel",
"enablement": "resourceFilename =~ /\\.(java|xml|yaml)$/"
},
{
"command": "camel.jbang.transform.routes.in.folder.yaml",
"title": "Transform any Camel Route in a specified folder to YAML DSL",
"category": "Camel"
},
{
"command": "camel.jbang.transform.routes.in.files.yaml",
"title": "Transform Camel Routes in multiple files to YAML DSL",
"category": "Camel"
},
{
"command": "camel.jbang.transform.routes.in.folder.xml",
"title": "Transform any Camel Route in a specified folder to XML DSL",
"category": "Camel"
},
{
"command": "camel.jbang.transform.routes.in.files.xml",
"title": "Transform Camel Routes in multiple files to XML DSL",
"category": "Camel"
}
],
"menus": {
"file/newFile": [
{
"command": "camel.new.file",
"group": "Camel",
"when": "workspaceFolderCount != 0"
}
],
"explorer/context": [
{
"submenu": "camel.new.file",
"group": "1_camel",
"when": "workspaceFolderCount != 0"
}
],
"camel.new.file": [
{
"command": "camel.jbang.routes.yaml",
"group": "1_camel@1",
"when": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.java",
"group": "1_camel@2",
"when": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.xml",
"group": "1_camel@3",
"when": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.kamelet.yaml",
"group": "1_camel@3",
"when": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.pipe.yaml",
"group": "1_camel@4",
"when": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.routes.yaml.fromopenapi",
"group": "1_camel@5",
"when": "workspaceFolderCount != 0"
},
{
"command": "camel.jbang.transform.route.yaml",
"group": "1_camel@6",
"when": "workspaceFolderCount != 0 && !explorerResourceIsFolder"
},
{
"command": "camel.jbang.transform.route.xml",
"group": "1_camel@7",
"when": "workspaceFolderCount != 0 && !explorerResourceIsFolder"
},
{
"command": "camel.jbang.transform.routes.in.folder.yaml",
"group": "1_camel@8",
"when": "workspaceFolderCount != 0 && explorerResourceIsFolder"
},
{
"command": "camel.jbang.transform.routes.in.folder.xml",
"group": "1_camel@9",
"when": "workspaceFolderCount != 0 && explorerResourceIsFolder"
}
]
},
"submenus": [
{
"id": "camel.new.file",
"label": "New Camel File"
}
],
"viewsWelcome": [
{
"view": "workbench.explorer.emptyView",
"contents": "Create a new Camel project using the button below.\n[Create a Camel project](command:camel.jbang.project.new)\nLearn more about Language Support for Apache Camel by Red Hat by reading the [documentation](https://camel-tooling.github.io/camel-lsp-client-vscode/)"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./ && npm run lint",
"watch": "tsc -watch -p ./",
"postinstall": "node ./scripts/postinstall.js",
"test": "node ./out/src/test/runTest.js",
"lint": "eslint src",
"preui-test": "npm run compile",
"ui-test": "node ./out/src/ui-test/uitest_runner.js",
"ui-coverage": "npm run ui-test -- coverage"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^2.12.1",
"@types/chai": "^4.3.20",
"@types/fs-extra": "^11.0.4",
"@types/glob": "^8.0.1",
"@types/lodash": "^4.17.14",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.1",
"@types/sinon": "^17.0.3",
"@types/vscode": "^1.82.0",
"@types/winreg": "^1.2.36",
"@typescript-eslint/eslint-plugin": "^8.19.1",
"@typescript-eslint/parser": "^8.19.1",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^3.2.1",
"async-wait-until": "^2.0.18",
"chai": "^4.5.0",
"eslint": "^9.17.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-import": "^2.31.0",
"glob": "^11.0.0",
"mocha": "^10.8.2",
"mocha-jenkins-reporter": "^0.4.8",
"mvn-artifact-download": "^6.1.1",
"rimraf": "^6.0.1",
"sinon": "^19.0.2",
"typescript": "^5.6.3",
"vscode-extension-tester": "^8.11.0"
},
"dependencies": {
"@redhat-developer/vscode-redhat-telemetry": "^0.9.1",
"expand-home-dir": "^0.0.3",
"fs-extra": "^11.2.0",
"lodash": "^4.17.21",
"valid-filename": "^3.1.0",
"vscode-languageclient": "^9.0.1",
"winreg-utf8": "^0.1.1"
}
}