-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
272 lines (272 loc) · 7.51 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
{
"name": "jbang-vscode",
"displayName": "JBang",
"description": "JBang support for VS Code Java",
"version": "0.11.0",
"icon": "icons/jbang.png",
"publisher": "jbangdev",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/jbangdev/jbang-vscode"
},
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Other"
],
"keywords": [
"JBang",
"Java"
],
"activationEvents": [
"onLanguage:java",
"onLanguage:groovy",
"onLanguage:kotlin",
"workspaceContains:build.jbang",
"workspaceContains:jbang-catalog.json",
"workspaceContains:*/jbang-catalog.json"
],
"extensionDependencies": [
"redhat.java"
],
"main": "./out/src/extension.js",
"contributes": {
"languages": [
{
"id": "jbang",
"extensions": [
".jbang"
],
"aliases": [
"JBang"
],
"configuration": "./language-support/language-configuration.json"
}
],
"grammars": [
{
"language": "jbang",
"scopeName": "source.build.jbang",
"path": "./language-support/build.jbang.tmLanguage.json"
},
{
"injectTo": [
"source.java"
],
"scopeName": "inline.jbang",
"path": "./language-support/inline-jbang.tmLanguage.json",
"embeddedLanguages": {
"meta.embedded.block.jbang": "jbang"
}
}
],
"javaExtensions": [
"./jars/dev.jbang.eclipse.core.jar",
"./jars/dev.jbang.eclipse.ls.jar"
],
"javaBuildFilePatterns": [
"^build\\.jbang$"
],
"problemMatchers": [
{
"name": "jbang.debug.problemMatcher",
"label": "Problem Matcher to determine when a JBang application is ready to debug.",
"owner": "jbang",
"pattern": {
"regexp": "^.*$"
},
"severity": "error",
"background": {
"activeOnStart": true,
"beginsPattern": "^.*$",
"endsPattern": "^Listening for transport dt_socket at address: (.*)$"
}
}
],
"commands": [
{
"command": "jbang.synchronize",
"title": "Synchronize JBang",
"category": "JBang",
"icon": "icons/jbang.png"
},
{
"command": "jbang.script.generate",
"title": "Create a new script",
"category": "JBang",
"icon": "icons/jbang.png"
},
{
"command": "jbang.script.export.native",
"title": "Export as native binary",
"category": "JBang",
"icon": "icons/jbang.png"
},
{
"command": "jbang.script.app.install",
"title": "Install application",
"category": "JBang",
"icon": "icons/jbang.png"
},
{
"command": "jbang.script.run",
"title": "Run JBang",
"category": "JBang",
"icon": "icons/jbang.png"
},
{
"command": "jbang.script.debug",
"title": "Debug JBang",
"category": "JBang",
"icon": "icons/debug-jbang.png"
}
],
"submenus": [
{
"id": "jbang",
"label": "JBang",
"icon": "icons/jbang.png"
}
],
"menus": {
"commandPalette": [
{
"command": "jbang.synchronize",
"when": "isJBangFile"
},
{
"command": "jbang.script.export.native",
"when": "isJBangFile"
}
],
"editor/title/run": [
{
"command": "jbang.script.run",
"when": "isJBangFile",
"group": "1_jbangexecute@1"
},
{
"command": "jbang.script.debug",
"when": "resourceExtname == .java && isJBangFile",
"group": "1_jbangexecute@2"
}
],
"explorer/context": [
{
"submenu": "jbang",
"when": "isJBangFile || resourceExtname == .jar",
"group": "1_jbangactions"
}
],
"editor/context": [
{
"submenu": "jbang",
"when": "isJBangFile",
"group": "1_jbangactions"
}
],
"jbang": [
{
"command": "jbang.synchronize",
"when": "resourceExtname == .java && isJBangFile",
"group": "1_jbangactions@1"
},
{
"command": "jbang.script.export.native",
"when": "isJBangFile",
"group": "1_jbangactions@2"
},
{
"command": "jbang.script.app.install",
"when": "isJBangFile",
"group": "1_jbangactions@3"
},
{
"command": "jbang.script.run",
"when": "isJBangFile || resourceExtname == .jar",
"group": "2_jbangexecute@1"
},
{
"command": "jbang.script.debug",
"when": "resourceExtname == .java && isJBangFile",
"group": "2_jbangexecute@2"
}
]
},
"configuration": {
"title": "JBang",
"properties": {
"jbang.home": {
"type": [
"string",
"null"
],
"default": null,
"markdownDescription": "Specifies the folder path to the JBang directory (not the executable), eg. `~/.sdkman/candidates/jbang/current`.\n\nOn Windows, backslashes must be escaped, eg. `C:\\\\ProgramData\\\\chocolatey\\\\lib\\\\jbang`.\n\nUsed by the `JBang: Create a new script` wizard and the `Run JBang` code lens. Useful in case `jbang` is not automatically picked up from the $PATH, for some reason.",
"description": "Specifies the folder path to the JBang directory (not the executable), eg. '~/.sdkman/candidates/jbang/current'.\n\nOn Windows, backslashes must be escaped, eg. 'C:\\\\ProgramData\\\\chocolatey\\\\lib\\\\jbang'.\n\nUsed by the 'JBang: Create a new script' wizard and the 'Run JBang' code lens. Useful in case 'jbang' is not automatically picked up from the $PATH, for some reason.",
"scope": "machine-overridable"
},
"jbang.wizard.templates.showDescriptions": {
"type": "boolean",
"default": true,
"markdownDescription": "When set to `true` (the default), shows JBang template descriptions in the `JBang: Create a new script` wizard, else hides them.",
"description": "When set to 'true' (the default), shows JBang template descriptions in the 'JBang: Create a new script' wizard, else hides them.",
"scope": "window"
},
"java.import.jbang.projectPerScript": {
"type": "boolean",
"default": false,
"markdownDescription": "When set to `true`, each script found in the opened folder will be imported as its own project, with its own classpath. `false` by default. Toggling this setting requires calling the `Java: Clean Java Language Server Workspace` command to take effect.",
"scope": "window"
},
"jbang.completion.onSelect.autosave": {
"type": "boolean",
"default": true,
"markdownDescription": "When set to `true` (the default), automatically save the file after `//DEPS` completion is selected, so the classpath gets updated.",
"scope": "window"
}
}
},
"jsonValidation": [
{
"fileMatch": "jbang-catalog.json",
"url": "./schemas/jbang-catalog-schema.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run checkTypes && npm run -S esbuild-base -- --minify",
"esbuild-base": "rimraf out && esbuild ./src/extension.ts ./test/runTest.ts ./test/**/*.ts --bundle --outdir=out --external:vscode --format=cjs --platform=node",
"build": "npm run -S esbuild-base -- --sourcemap",
"checkTypes": "tsc -p . -noEmit",
"watch": "npm run -S esbuild-base -- --sourcemap --watch",
"build-ext": "node scripts/build-jbang-eclipse.js",
"pretest": "npm run build && npm run lint",
"lint": "eslint src/**/*.ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/mocha": "10.0.8",
"@types/node": "20.14.11",
"@types/vscode": "1.90.0",
"@typescript-eslint/eslint-plugin": "8.6.0",
"@typescript-eslint/parser": "8.6.0",
"@vscode/test-electron": "2.4.1",
"esbuild": "0.23.1",
"eslint": "9.10.0",
"glob": "11.0.0",
"mocha": "10.7.3",
"npm-run-all": "^4.1.5",
"rimraf": "^6.0.1",
"typescript": "5.5.2"
},
"dependencies": {
"axios": "1.7.7",
"fast-xml-parser": "^4.5.0",
"lru-cache": "11.0.1",
"shelljs": "^0.8.5",
"vscode-languageclient": "^8.1.0"
}
}