-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
413 lines (413 loc) · 11.8 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
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
{
"name": "divinity-vscode",
"displayName": "Divinity Engine Script Support",
"description": "VS Code language support for Divinity Engine story scripts",
"author": "Sebastian Lenz",
"license": "MIT",
"version": "1.0.13",
"publisher": "sebastian-lenz",
"categories": [
"Programming Languages"
],
"icon": "resources/extension.png",
"keywords": [
"Larian",
"Divinity Engine",
"Osiris",
"Story Script"
],
"engines": {
"vscode": "^1.31.0"
},
"activationEvents": [
"workspaceContains:/meta.lsx",
"workspaceContains:**/Story/story.div",
"workspaceContains:**/RawFiles/story_header.div",
"onLanguage:divinity-story-goal",
"onLanguage:divinity-story-div",
"onWebviewPanel:divinity.apiExplorer"
],
"homepage": "https://github.com/sebastian-lenz/divinity-vscode",
"repository": {
"type": "git",
"url": "https://github.com/sebastian-lenz/divinity-vscode.git"
},
"bugs": {
"url": "https://github.com/sebastian-lenz/divinity-vscode/issues"
},
"main": "./lib/client",
"contributes": {
"configuration": {
"type": "object",
"title": "Divinity Engine Script configuration",
"properties": {
"divinity.compilerPath": {
"scope": "window",
"type": "string",
"description": "Set the path to the custom compiler."
},
"divinity.compilerLogPath": {
"scope": "window",
"type": "string",
"description": "Set the path to which the compiler log is written."
}
}
},
"commands": [
{
"command": "divinity.showApiExplorer",
"title": "Show API explorer",
"category": "Divinity"
},
{
"command": "divinity.installLSLib",
"title": "Install LSLib Compiler and Debugger",
"category": "Divinity"
},
{
"command": "divinity.installDebugger",
"title": "Copy LSLib Debugger to editor or game",
"category": "Divinity"
},
{
"command": "divinity.updateLSLib",
"title": "Update LSLib Compiler and Debugger",
"category": "Divinity"
},
{
"command": "divinity.getDebugExecutable",
"title": "Get debug executable",
"category": "Divinity"
},
{
"command": "divinity.storyOutline.openGoal",
"title": "Open Goal",
"category": "Divinity",
"when": "viewItem == sharedGoal || viewItem == customGoal"
},
{
"command": "divinity.storyOutline.addGoal",
"title": "Add new Goal",
"category": "Divinity",
"when": "viewItem == sharedGoal || viewItem == customGoal"
},
{
"command": "divinity.storyOutline.renameGoal",
"title": "Rename Goal",
"category": "Divinity",
"when": "viewItem == customGoal"
},
{
"command": "divinity.storyOutline.deleteGoal",
"title": "Delete Goal",
"category": "Divinity",
"when": "viewItem == customGoal"
},
{
"command": "divinity.storyOutline.moveGoal",
"title": "Move Goal",
"category": "Divinity",
"when": "viewItem == customGoal"
},
{
"command": "divinity.storyOutline.copyGoal",
"title": "Copy Goal to my Mod",
"category": "Divinity",
"when": "viewItem == sharedGoal"
}
],
"languages": [
{
"id": "divinity-story-goal",
"aliases": [
"Divinity story goal",
"divinity-story-goal"
],
"extensions": [
".divGoal"
],
"filenamePatterns": [
"**/Story/RawFiles/Goals/*.txt"
],
"configuration": "./syntaxes/divinity-story-goal.language-configuration.json"
},
{
"id": "divinity-story-div",
"aliases": [
"Divinity story div",
"divinity-story-div"
],
"extensions": [
".div"
],
"configuration": "./syntaxes/divinity-story-div.language-configuration.json"
},
{
"id": "divinity-story-log",
"aliases": [
"Divinity story log",
"divinity-story-log"
],
"extensions": [
"osirislog.log"
]
}
],
"menus": {
"view/item/context": [
{
"command": "divinity.storyOutline.openGoal",
"when": "view == divinity.storyOutline",
"group": "navigation"
},
{
"command": "divinity.storyOutline.addGoal",
"when": "view == divinity.storyOutline",
"group": "navigation"
},
{
"command": "divinity.storyOutline.renameGoal",
"when": "view == divinity.storyOutline && viewItem != sharedGoal",
"group": "1_modification"
},
{
"command": "divinity.storyOutline.deleteGoal",
"when": "view == divinity.storyOutline && viewItem != sharedGoal",
"group": "1_modification"
},
{
"command": "divinity.storyOutline.moveGoal",
"when": "view == divinity.storyOutline && viewItem != sharedGoal",
"group": "1_modification"
},
{
"command": "divinity.storyOutline.copyGoal",
"when": "view == divinity.storyOutline && viewItem == sharedGoal",
"group": "1_modification"
}
],
"editor/context": [
{
"command": "divinity.showApiExplorer",
"group": "navigation",
"when": "editorTextFocus && editorLangId == divinity-story-goal"
}
]
},
"grammars": [
{
"language": "divinity-story-div",
"scopeName": "text.divinity.storydiv",
"path": "./syntaxes/divinity-story-div.tmLanguage.json"
},
{
"language": "divinity-story-goal",
"scopeName": "text.divinity.storygoal",
"path": "./syntaxes/divinity-story-goal.tmLanguage.json"
},
{
"language": "divinity-story-log",
"scopeName": "text.divinity.storylog",
"path": "./syntaxes/divinity-story-log.tmLanguage.json"
}
],
"problemMatchers": [
{
"name": "divinity.problemMatcher",
"owner": "divinity-vscode",
"fileLocation": "absolute",
"pattern": {
"regexp": "^(WARN|ERR!) ((?:[^:]+:\\\\)?[^:]*):(\\d+):(\\d+): \\[([^\\]]+)\\] (.*)$",
"severity": 1,
"file": 2,
"line": 3,
"column": 4,
"code": 5,
"message": 6
}
}
],
"snippets": [
{
"language": "divinity-story-goal",
"path": "./syntaxes/divinity-story-goal.snippets.json"
}
],
"taskDefinitions": [
{
"type": "divinity.task.compiler",
"required": [
"game",
"gameDataPath",
"output",
"mod"
],
"properties": {
"gameDataPath": {
"type": "string",
"description": "Location of the game Data folder"
},
"output": {
"type": "string",
"description": "Compiled story output path"
},
"mod": {
"type": "array",
"description": "Check and compile all goals from the specified mod"
},
"game": {
"type": "string",
"description": "Set the target game version.",
"enum": [
"dos2",
"dos2de"
]
},
"noWarn": {
"type": "array",
"description": "Suppress warnings with diagnostic code <code>",
"enum": [
"alias-mismatch",
"db-naming",
"guid-prefix",
"rule-naming",
"string-lt",
"unused-db"
]
},
"checkOnly": {
"type": "boolean",
"description": "Only check scripts for errors, don't generate compiled story file"
},
"checkNames": {
"type": "boolean",
"description": "Verify game object names (slow!)"
},
"debugInfo": {
"type": "string",
"description": "Debugging symbols path"
},
"debugLog": {
"type": "string",
"description": "Debugging log path"
},
"reload": {
"type": "string",
"description": "Turns on editor level reloading.",
"enum": [
"reloadStory",
"reloadLevelAndStory"
]
}
}
},
{
"type": "divinity.task.reload"
}
],
"debuggers": [
{
"type": "osiris",
"label": "Osiris Debugger",
"languages": [
"divinity-story-goal"
],
"adapterExecutableCommand": "divinity.getDebugExecutable",
"configurationAttributes": {
"launch": {
"properties": {
"debugInfoPath": {
"type": "string",
"description": "Location of story debug symbol file"
},
"backendHost": {
"type": "string",
"description": "IP address of debugger backend server"
},
"backendPort": {
"type": "number",
"description": "Port of debugger backend server"
},
"modUuid": {
"type": "string",
"description": "The uuid of the mod beeing debugged"
},
"dbgOptions": {
"type": "object",
"description": "Debugger custom overrides",
"properties": {
"rawFrames": {
"type": "boolean",
"description": "Requests the debugger to return raw call frames from the backend instead of merging and pretty printing the frames."
},
"stopOnAllFrames": {
"type": "boolean",
"description": "Stop on all frames during single-stepping instead of meaningful frames."
},
"stopOnDbPropagation": {
"type": "boolean",
"description": "Stop inside database propagation calls during single-stepping."
}
}
}
}
}
}
}
],
"breakpoints": [
{
"language": "divinity-story-goal"
}
],
"views": {
"explorer": [
{
"id": "divinity.storyOutline",
"name": "Story Outline",
"when": "divinity.storyOutline.enabled"
}
]
}
},
"scripts": {
"compile": "rimraf ./lib/** && tsc -p ./tsconfig.publish.json && webpack",
"package": "vsce package",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "mocha",
"update-vscode": "node ./node_modules/vscode/bin/install",
"vscode:prepublish": "npm run update-vscode && npm run compile",
"watch": "rimraf ./lib/** && tsc -w -p ./tsconfig.json"
},
"devDependencies": {
"@types/fast-levenshtein": "0.0.1",
"@types/handlebars": "^4.1.0",
"@types/js-yaml": "^3.12.1",
"@types/long": "^4.0.0",
"@types/marked": "^0.4.2",
"@types/mkdirp": "^0.5.2",
"@types/node": "^8.10.49",
"@types/promise-queue": "^2.2.0",
"@types/rimraf": "^2.0.2",
"@types/unzipper": "^0.9.2",
"fast-levenshtein": "^2.0.6",
"fast-xml-parser": "^3.12.16",
"handlebars": "^4.1.2",
"js-yaml": "^3.13.1",
"long": "^4.0.0",
"mkdirp": "^0.5.1",
"mocha": "^5.2.0",
"promise-queue": "^2.2.5",
"rimraf": "^2.6.3",
"tslib": "^1.9.3",
"typescript": "2.8.3",
"unzipper": "^0.9.15",
"vscode": "^1.1.34",
"webpack": "^4.33.0",
"webpack-cli": "^3.3.2"
},
"dependencies": {
"vscode-languageclient": "^5.2.1",
"vscode-languageserver": "^5.2.1"
}
}