-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
317 lines (317 loc) · 11.4 KB
/
package.json
File metadata and controls
317 lines (317 loc) · 11.4 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
{
"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.9.1",
"publisher": "peterzeller",
"engines": {
"vscode": "^1.109.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onLanguage:wurst",
"onCustomEditor:wurst.blpPreview",
"onCommand:wurst.startmap",
"onCommand:wurst.runmap",
"onCommand:wurst.startlast",
"onCommand:wurst.tests",
"onCommand:wurst.tests_file",
"onCommand:wurst.tests_func",
"onCommand:wurst.fix_all_quickfixes",
"onCommand:wurst.perform_code_action",
"onCommand:wurst.buildmap",
"onCommand:wurst.tests_file"
],
"main": "./out/extension",
"browser": "./dist/web/extension.js",
"contributes": {
"languages": [
{
"id": "wurst",
"aliases": [
"Wurst",
"wurst"
],
"extensions": [
".wurst",
".jurst",
".j"
],
"configuration": "./wurst.configuration.json"
}
],
"documentFormattingEditProvider": {
"documentSelector": [
"wurst"
],
"enableForFileTypes": [
".wurst",
".jurst",
".j"
]
},
"grammars": [
{
"language": "wurst",
"scopeName": "source.wurst",
"path": "./syntaxes/wurst.json"
}
],
"customEditors": [
{
"viewType": "wurst.blpPreview",
"displayName": "WC3 Image Preview",
"selector": [
{
"filenamePattern": "*.blp"
},
{
"filenamePattern": "*.BLP"
},
{
"filenamePattern": "*.dds"
},
{
"filenamePattern": "*.DDS"
},
{
"filenamePattern": "*.mdx"
},
{
"filenamePattern": "*.MDX"
}
],
"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.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": "tsc -p ./ && 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": "^25.3.3",
"@types/os-homedir": "^1.0.2",
"@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",
"webpack": "^5.105.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@dschu012/casclib": "^1.0.5",
"casc-cdn": "^0.1.1",
"node-stream-zip": "^1.15.0",
"semver": "^7.6.3",
"vscode-languageclient": "^9.0.1",
"war3-model": "^4.0.1"
},
"extensionPack": [
"redhat.vscode-yaml",
"vscode-icons-team.vscode-icons"
]
}