-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
524 lines (524 loc) · 17.9 KB
/
package.json
File metadata and controls
524 lines (524 loc) · 17.9 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
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
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
{
"name": "wurst",
"displayName": "Wurst language support",
"description": "Language support for Wurstscript.",
"icon": "images/wurst_icon.png",
"license": "SEE LICENSE IN LICENSE.txt",
"bugs": {
"url": "https://github.com/wurstscript/wurst4vscode/issues",
"email": "peter.peq@gmail.com"
},
"homepage": "https://github.com/wurstscript/wurst4vscode",
"repository": {
"type": "git",
"url": "https://github.com/wurstscript/wurst4vscode.git"
},
"version": "0.10.0",
"publisher": "peterzeller",
"engines": {
"vscode": "^1.109.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [],
"main": "./dist/extension",
"browser": "./dist/web/extension.js",
"contributes": {
"languages": [
{
"id": "wurst",
"aliases": [
"Wurst",
"wurst"
],
"extensions": [
".wurst",
".jurst",
".j"
],
"configuration": "./wurst.configuration.json"
},
{
"id": "wc3-image",
"aliases": [
"WC3 Image"
],
"extensions": [
".blp",
".BLP",
".dds",
".DDS",
".tga",
".TGA"
],
"icon": {
"light": "./images/icons/blp.svg",
"dark": "./images/icons/blp.svg"
}
},
{
"id": "wc3-model",
"aliases": [
"WC3 Model"
],
"extensions": [
".mdx",
".MDX",
".mdl",
".MDL"
],
"icon": {
"light": "./images/icons/mdx.svg",
"dark": "./images/icons/mdx.svg"
}
},
{
"id": "wc3-map",
"aliases": [
"WC3 Map"
],
"extensions": [
".w3x",
".W3X",
".w3m",
".W3M"
],
"icon": {
"light": "./images/icons/w3map.svg",
"dark": "./images/icons/w3map.svg"
}
},
{
"id": "wc3-objdata",
"aliases": [
"WC3 Object Data"
],
"extensions": [
".w3i",
".w3u",
".w3t",
".w3a",
".w3b",
".w3d",
".w3h",
".w3q",
".w3o",
".w3e",
".w3r",
".w3c",
".w3s",
".w3l"
],
"icon": {
"light": "./images/icons/w3data.svg",
"dark": "./images/icons/w3data.svg"
}
},
{
"id": "wc3-trigger",
"aliases": [
"WC3 Triggers"
],
"extensions": [
".wtg",
".wct"
],
"icon": {
"light": "./images/icons/wtg.svg",
"dark": "./images/icons/wtg.svg"
}
},
{
"id": "wc3-wts",
"aliases": [
"WC3 String Table",
"WTS"
],
"extensions": [
".wts"
],
"icon": {
"light": "./images/icons/wtg.svg",
"dark": "./images/icons/wtg.svg"
}
},
{
"id": "wc3-slk",
"aliases": [
"WC3 SLK Data"
],
"extensions": [
".slk",
".SLK"
],
"icon": {
"light": "./images/icons/slk.svg",
"dark": "./images/icons/slk.svg"
}
},
{
"id": "wc3-terrain",
"aliases": [
"WC3 Terrain"
],
"extensions": [
".wpm",
".shd",
".mmp",
".doo"
],
"icon": {
"light": "./images/icons/terrain.svg",
"dark": "./images/icons/terrain.svg"
}
},
{
"id": "wc3-fdf",
"aliases": [
"WC3 Frame Definition",
"FDF"
],
"extensions": [
".fdf",
".FDF"
],
"icon": {
"light": "./images/icons/fdf.svg",
"dark": "./images/icons/fdf.svg"
}
},
{
"id": "wc3-toc",
"aliases": [
"WC3 TOC",
"TOC"
],
"extensions": [
".toc",
".TOC"
],
"icon": {
"light": "./images/icons/slk.svg",
"dark": "./images/icons/slk.svg"
}
}
],
"documentFormattingEditProvider": {
"documentSelector": [
"wurst"
],
"enableForFileTypes": [
".wurst",
".jurst",
".j"
]
},
"grammars": [
{
"language": "wurst",
"scopeName": "source.wurst",
"path": "./syntaxes/wurst.json"
},
{
"language": "wc3-wts",
"scopeName": "source.wts",
"path": "./syntaxes/wts.json"
},
{
"language": "wc3-fdf",
"scopeName": "source.fdf",
"path": "./syntaxes/fdf.json"
},
{
"language": "wc3-toc",
"scopeName": "source.toc",
"path": "./syntaxes/toc.json"
}
],
"customEditors": [
{
"viewType": "wurst.blpPreview",
"displayName": "WC3 Image Preview",
"selector": [
{
"filenamePattern": "*.blp"
},
{
"filenamePattern": "*.BLP"
},
{
"filenamePattern": "*.dds"
},
{
"filenamePattern": "*.DDS"
},
{
"filenamePattern": "*.tga"
},
{
"filenamePattern": "*.TGA"
},
{
"filenamePattern": "*.mdx"
},
{
"filenamePattern": "*.MDX"
}
],
"priority": "default"
},
{
"viewType": "wurst.objModPreview",
"displayName": "WC3 Object Data",
"selector": [
{ "filenamePattern": "*.w3u" },
{ "filenamePattern": "*.w3t" },
{ "filenamePattern": "*.w3a" },
{ "filenamePattern": "*.w3b" },
{ "filenamePattern": "*.w3d" },
{ "filenamePattern": "*.w3h" },
{ "filenamePattern": "*.w3q" }
],
"priority": "default"
},
{
"viewType": "wurst.mpqViewer",
"displayName": "WC3 Map Archive",
"selector": [
{
"filenamePattern": "*.w3x"
},
{
"filenamePattern": "*.W3X"
},
{
"filenamePattern": "*.w3m"
},
{
"filenamePattern": "*.W3M"
}
],
"priority": "default"
}
],
"commands": [
{
"command": "wurst.startmap",
"title": "Run wurstscript map",
"category": "wurst"
},
{
"command": "wurst.hotstartmap",
"title": "Hot run wurstscript map with Jass Hot Code Reload (JHCR)",
"category": "wurst"
},
{
"command": "wurst.hotreload",
"title": "Hot reload code for wurstscript map started with Jass Hot Code Reload (JHCR)",
"category": "wurst"
},
{
"command": "wurst.startlast",
"title": "Run the last wurstscript map again",
"category": "wurst"
},
{
"command": "wurst.runmap",
"title": "Run wurstscript Map",
"category": "wurst",
"icon": {
"light": "images/wurst_icon_play.svg",
"dark": "images/wurst_icon_play.svg"
}
},
{
"command": "wurst.tests",
"title": "Run all unit tests",
"category": "wurst"
},
{
"command": "wurst.tests_file",
"title": "Run unit tests in current file",
"category": "wurst"
},
{
"command": "wurst.tests_func",
"title": "Run unit test under cursor",
"category": "wurst"
},
{
"command": "wurst.fix_all_quickfixes",
"title": "Apply all Wurst quickfixes in workspace",
"category": "wurst"
},
{
"command": "wurst.perform_code_action",
"title": "Perform a code action (This command is usually triggered by quick fixes in the editor).",
"category": "wurst"
},
{
"command": "wurst.buildmap",
"title": "Build your map via wurst.build (into /_build)",
"category": "wurst"
},
{
"command": "wurst.chooseGameExecutable",
"title": "Choose Warcraft III executable",
"category": "wurst"
},
{
"command": "wurst.installOrUpdate",
"title": "Install or update your Wurstscript installation",
"category": "wurst"
},
{
"command": "wurst.showLogs",
"title": "Open VSCode output panel for Wurst logs",
"category": "wurst"
},
{
"command": "wurst.testCascExtraction",
"title": "Test CASC Texture Extraction (Smoketest)",
"category": "wurst"
},
{
"command": "wurst.newProject",
"title": "New Wurst Project",
"category": "wurst"
}
],
"menus": {
"editor/title": [
{
"command": "wurst.runmap",
"when": "resourceLangId == wurst",
"group": "navigation@1"
},
{
"command": "wurst.runmap",
"when": "resourceExtname == .w3x || resourceExtname == .w3m",
"group": "navigation@1"
}
],
"explorer/context": [
{
"command": "wurst.runmap",
"when": "resourceExtname == .w3x || resourceExtname == .w3m",
"group": "navigation@1"
}
]
},
"keybindings": {
"command": "wurst.tests_file",
"key": "ctrl+f1",
"mac": "cmd+f1",
"when": "editorTextFocus"
},
"configuration": {
"type": "object",
"title": "Wurst configuration",
"properties": {
"wurst.javaExecutable": {
"type": "string",
"default": "",
"description": "Path to a custom Java executable (Java 25+) to use for the language server. Leave empty to use the bundled JRE (default). Useful on NixOS or other systems where the bundled JRE does not work. NixOS example: add `jdk25` to your environment packages and set this to the output of `which java`, e.g. /run/current-system/sw/bin/java or $(nix-build '<nixpkgs>' -A jdk25 --no-out-link)/bin/java"
},
"wurst.javaOpts": {
"type": "array",
"default": [],
"description": "Additional options to pass to java when starting Wurst."
},
"wurst.debugMode": {
"type": "boolean",
"default": "false",
"description": "Enabling the debugmode will make the VM available for attaching on port 5005"
},
"wurst.hideExceptions": {
"type": "boolean",
"default": "true",
"description": "Turn this off to see Wurst Exceptions as vscode notifications"
},
"wurst.wc3path": {
"type": "string",
"default": "",
"description": "Optional path to a Warcraft installation directory (e.g. C:\\Games\\Warcraft III\\). If no executable can be found, it will be followed by an auto detection attempt."
},
"wurst.gameExePath": {
"type": "string",
"default": "",
"description": "Optional path to a Warcraft executable to override wc3path detection."
},
"wurst.wc3RunArgs": {
"type": "string",
"default": "",
"description": "Custom run arguments passed to the warcraft executable (such as -windowmode and -graphicsapi) which will replace the default wurst arguments."
},
"wurst.mapDocumentPath": {
"type": "string",
"default": "",
"description": "The path where to put maps before running them. Usually something like `C:\\Users\\YourName\\Documents\\Warcraft III`."
},
"wurst.jhcrExe": {
"type": "string",
"default": "jhcr.exe",
"description": "The path to the Jass Hot Code Reload (JHCR) executable. The default assumes that the executable is on the Path."
},
"wurst.customMapDataPath": {
"type": "string",
"default": "",
"markdownDescription": "The path where Warcraft stores custom map data. This is usually something like `C:\\Users\\lep\\Documents\\Warcraft III\\CustomMapData` or `C:\\Users\\Peter\\OneDrive\\Dokumente\\Warcraft III\\CustomMapData`. This path will be passed to the `--preload-path` option of Jass Hot Code Reload (JHCR)."
},
"wurst.testTimeout": {
"type": "number",
"default": "20",
"description": "Timeout in seconds after which tests will be cancelled and considered failed, if they did not yet succeed."
},
"wurst.cascTextures": {
"type": "boolean",
"default": false,
"description": "When previewing MDX models, fetch missing textures from the Warcraft III CDN (requires internet access)."
},
"wurst.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package-web",
"compile": "tsc -watch -p ./",
"compile-web": "webpack",
"watch-web": "webpack --watch",
"package-web": "webpack --mode production --devtool hidden-source-map",
"publish": "vsce publish"
},
"devDependencies": {
"@types/node": "^22.19.17",
"@types/vscode": "^1.109.0",
"@types/webpack-env": "^1.18.8",
"@vscode/vsce": "^3.7.1",
"ts-loader": "^9.5.1",
"typescript": "^5.9.3",
"war3-model": "file:../war3-model",
"webpack": "^5.105.0",
"webpack-cli": "^7.0.2"
},
"dependencies": {
"casc-ts": "file:../casc-ts",
"node-stream-zip": "^1.15.0",
"vscode-languageclient": "^9.0.1"
},
"extensionPack": [
"redhat.vscode-yaml",
"vscode-icons-team.vscode-icons"
]
}