-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.json
457 lines (457 loc) · 16.2 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
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
{
"name": "tabletopsimulator-lua",
"displayName": "Tabletop Simulator Lua",
"author": "Rolando Romero <contact@rolandostar.com> (https://rolandostar.com/)",
"description": "Extension for VSCode to make writing Lua scripts for Tabletop Simulator easier.",
"version": "2.0.0-rc1",
"publisher": "rolandostar",
"license": "MIT",
"engines": {
"node": ">=12.9.0",
"vscode": "^1.72.0"
},
"repository": {
"type": "git",
"url": "https://github.com/rolandostar/tabletopsimulator-lua-vscode"
},
"categories": [
"Programming Languages",
"Other"
],
"scripts": {
"compile": "webpack --mode development",
"watch": "webpack --mode development --watch",
"lint": "gts lint",
"pretest": "npm run lint && npm run test-compile",
"test-compile": "tsc",
"test": "node ./dist/test/runTest.js",
"fix": "gts fix",
"vscode:prepublish": "webpack --mode production",
"package": "vsce package"
},
"extensionDependencies": [
"draivin.hscopes"
],
"dependencies": {
"@vscode/codicons": "^0.0.32",
"axios": "^1.1.2",
"glob": "^8.0.3",
"html-escaper": "^3.0.3",
"luabundle": "^1.6.0",
"nodejs-file-downloader": "^4.10.2",
"require-module-from-string": "^1.0.19"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.0",
"@types/node": "~18.8.4",
"@types/vscode": "^1.72.0",
"@typescript-eslint/eslint-plugin": "^5.40.0",
"@typescript-eslint/parser": "^5.40.0",
"@vscode/test-electron": "^2.1.5",
"copy-webpack-plugin": "^11.0.0",
"eslint": "^8.25.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"gts": "^3.1.1",
"mocha": "^10.0.0",
"terser-webpack-plugin": "^5.3.6",
"ts-loader": "^9.4.1",
"typescript": "^4.8.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
},
"activationEvents": [
"onWebviewPanel:TTSConsole",
"workspaceContains:*.lua",
"onLanguage:lua",
"onCommand:ttslua.openConsole",
"onCommand:ttslua.getScripts",
"onCommand:ttslua.saveAndPlay",
"onCommand:ttslua.installConsole",
"onCommand:ttslua.addGlobalInclude",
"onCommand:ttslua.updateCompletionItems",
"onCommand:ttslua.forceAutocompleteUpdate",
"onCommand:ttslua.changeWorkDir",
"onCommand:ttslua.downloadAssets"
],
"main": "./dist/main.js",
"contributes": {
"commands": [
{
"command": "ttslua.updateCompletionItems",
"title": "Update IntelliSense with latest TTS API",
"category": "TTS Lua",
"icon": "$(book)"
},
{
"command": "ttslua.openConsole",
"title": "Open TTS Console++",
"category": "TTS Lua",
"icon": "$(book)"
},
{
"command": "ttslua.getScripts",
"title": "Get Lua Scripts",
"category": "TTS Lua"
},
{
"command": "ttslua.saveAndPlay",
"title": "Save And Play",
"category": "TTS Lua"
},
{
"command": "ttslua.installConsole",
"title": "Install Console++",
"category": "TTS Lua"
},
{
"command": "ttslua.addGlobalInclude",
"title": "Add Global include folder to workspace",
"category": "TTS Lua"
},
{
"command": "ttslua.forceAutocompleteUpdate",
"title": "[Debug] Force autocomplete update",
"category": "TTS Lua"
},
{
"command": "ttslua.executeLua",
"title": "Execute selected Lua",
"category": "TTS Lua",
"icon": "$(debug-start)"
},
{
"command": "ttslua.changeWorkDir",
"title": "Change working directory where scripts will be saved to and loaded from.",
"category": "TTS Lua"
},
{
"command": "ttslua.downloadAssets",
"title": "Download assets",
"category": "TTS Lua"
}
],
"menus": {
"editor/context": [
{
"when": "editorHasSelection",
"command": "ttslua.executeLua",
"group": "0_Custom"
}
]
},
"keybindings": [
{
"command": "ttslua.openConsole",
"key": "ctrl+alt+`"
},
{
"command": "ttslua.getScripts",
"key": "ctrl+alt+l"
},
{
"command": "ttslua.saveAndPlay",
"key": "ctrl+alt+s"
},
{
"command": "ttslua.executeLua",
"key": "ctrl+alt+e"
}
],
"configuration": [
{
"order": 10,
"id": "ttslua.fileManagement",
"title": "File Management",
"properties": {
"ttslua.fileManagement.autoOpen": {
"description": "Which files should VScode automatically open when receiving them from the game.",
"type": "string",
"default": "Global",
"enum": [
"All",
"Global",
"None"
],
"enumDescriptions": [
"Open all received files when getting scripts.",
"Only open global script.",
"Do not open any file. (Will still show files in explorer panel)"
]
},
"ttslua.fileManagement.createXML": {
"title": "Create XML UI file when object sent from Tabletop Simulator",
"description": "When an individual object is sent from Tabletop Simulator which has no XML UI, generate a blank XML file for it.",
"type": "boolean",
"default": false
},
"ttslua.fileManagement.includePaths": {
"title": "Additional paths to search for files",
"markdownDescription": "Both `~/Documents/Tabletop Simulator` and currently opened Folders in workspace are always included in search path. [Learn More](https://tts-vscode.rolandostar.com/extension/moduleResolution)\n\neg. `C:\\Users\\<YourName>\\MyTTSFiles\\`",
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"ttslua.fileManagement.luaSearchPattern": {
"title": "Pattern used to look for require'd files",
"markdownDescription": "`?.lua` is always searched for.\n\nDescribed in Lua's [search path patterns](https://www.lua.org/pil/8.1.html).",
"type": "array",
"items": {
"type": "string"
},
"default": [
"?",
"?.lua"
],
"minItems": 1
},
"ttslua.fileManagement.saveName": {
"title": "How to name saved files",
"markdownDescription": "When using version control, how should the save file be named.\n\nExtension will always be `.json`",
"type": "string",
"default": "savegame"
}
}
},
{
"order": 20,
"id": "ttslua.autocompletion",
"title": "Autocompletion",
"properties": {
"ttslua.autocompletion.coroutineSuffix": {
"title": "Coroutine Suffix",
"description": "When automatically creating an internal coroutine function this is appended to the parent function's name.",
"type": "string",
"default": "_routine",
"minLength": 1
},
"ttslua.autocompletion.guidSuffix": {
"title": "GUID Suffix",
"description": "When guessing the getObjectFromGUID parameter this is appended to the name of the variable being assigned to.",
"type": "string",
"default": "_GUID",
"minLength": 1
},
"ttslua.autocompletion.parameterFormat": {
"description": "How parameters will be formatted in autocomplete suggestions. Use keywords TYPE and NAME to insert those parameter fields, with the desired casing (i.e. type vs Type vs TYPE).",
"type": "string",
"default": "Type_name"
}
}
},
{
"order": 30,
"id": "ttslua.console",
"title": "Console++",
"properties": {
"ttslua.console.fontFamily": {
"title": "Console++ Font Family",
"description": "Controls the Console Font Family",
"type": "string",
"default": "Amaranth",
"minLength": 1
},
"ttslua.console.fontSize": {
"title": "Console++ Font Size",
"description": "Font size for console panel in pixels. Can also be changed with Ctrl+Scroll.",
"type": "integer",
"default": 16
},
"ttslua.console.inputHeight": {
"title": "Console++ Input Height",
"description": "Height in pixels of the command input bar at the bottom.",
"type": "integer",
"default": 27
},
"ttslua.console.clearOnReload": {
"title": "Clear on Reload",
"description": "Enable to clear Console++ history when opening new game or reloading.",
"type": "boolean",
"default": false
},
"ttslua.console.clearOnFocus": {
"title": "Reset to caret (>) on input focus",
"markdownDescription": "Enable to clear the command input bar when using ``double click`` or ``Enter`` to focus it.",
"type": "boolean",
"default": false
},
"ttslua.console.logSaves": {
"description": "Enable to log a message to the Console when a save occurs.",
"type": "boolean",
"default": true
}
}
},
{
"order": 40,
"id": "ttslua.misc",
"title": "Miscellaneous",
"properties": {
"ttslua.misc.disableDirectoryWarning": {
"markdownDescription": "When enabled, the extension will not show a warning when directories are deteced in the In-Game Files. [Learn More](http://tts-vscode.rolandostar.com/support/dirWarning)",
"type": "boolean",
"default": false
},
"ttslua.misc.debugSearchPaths": {
"markdownDescription": "When enabled, the extension will output the paths and patterns it's using to locate includes and requires. Useful for debugging `ModuleResolution` errors.[Learn More](https://tts-vscode.rolandostar.com/support/debuggingModuleResolution)\n\nOpen the Developer Tools to see the output, default hotkey `Ctrl+Shift+I`.",
"type": "boolean",
"default": false
}
}
}
],
"not-walkthroughs": [
{
"id": "ttslua-first-setup",
"title": "Tabletop Simulator for VSCode",
"description": "Learn how to get started Scripting with Lua and VSCode",
"steps": [
{
"id": "startGamge",
"title": "1. Start the Game! 🎯",
"description": "TTS Lua depends on Tabletop Simulator running, so go ahead, start it up and load an empty save!",
"media": {
"image": "media/docs/banner.png",
"altText": "Banner Image"
},
"completionEvents": [
"onContext:ttsGameDetected"
]
},
{
"id": "loadSave",
"title": "2. Load a Save 📂",
"description": "This step will change a setting and check off when the setting has changed\n[Change Setting](command:getting-started-sample.changeSetting)",
"media": {
"markdown": "media/markdown.md"
},
"completionEvents": [
"onSettingChanged:getting-started-sample.sampleSetting"
]
},
{
"id": "getScripts",
"title": "3. Get Scripts ⏬",
"description": "This step will change a setting and check off when the setting has changed\n[Change Setting](command:getting-started-sample.changeSetting)",
"media": {
"markdown": "media/markdown.md"
},
"completionEvents": [
"onSettingChanged:getting-started-sample.sampleSetting"
]
},
{
"id": "makeChanges",
"title": "4. Make Changes ⌨️",
"description": "This step will change a setting and check off when the setting has changed\n[Change Setting](command:getting-started-sample.changeSetting)",
"media": {
"markdown": "media/markdown.md"
},
"completionEvents": [
"onSettingChanged:getting-started-sample.sampleSetting"
]
},
{
"id": "saveAndPlay",
"title": "5. Save and Play! 💾",
"description": "This step will change a setting and check off when the setting has changed\n[Change Setting](command:getting-started-sample.changeSetting)",
"media": {
"markdown": "media/markdown.md"
},
"completionEvents": [
"onSettingChanged:getting-started-sample.sampleSetting"
]
},
{
"id": "installConsole",
"title": "6. Install Console++ 😎👉👉",
"description": "This step will change a setting and check off when the setting has changed\n[Change Setting](command:getting-started-sample.changeSetting)",
"media": {
"markdown": "media/markdown.md"
},
"completionEvents": [
"onSettingChanged:getting-started-sample.sampleSetting"
]
},
{
"id": "includeConsole",
"title": "7. Include External Files",
"description": "This step will change a setting and check off when the setting has changed\n[Change Setting](command:getting-started-sample.changeSetting)",
"media": {
"markdown": "media/markdown.md"
},
"completionEvents": [
"onSettingChanged:getting-started-sample.sampleSetting"
]
},
{
"id": "openConsole",
"title": "8. Open Console++",
"description": "This step will change a setting and check off when the setting has changed\n[Change Setting](command:getting-started-sample.changeSetting)",
"media": {
"markdown": "media/markdown.md"
},
"completionEvents": [
"onSettingChanged:getting-started-sample.sampleSetting"
]
},
{
"id": "saveAndPlaywithConsole",
"title": "Done 🎉",
"description": "This step will change a setting and check off when the setting has changed\n[Change Setting](command:getting-started-sample.changeSetting)",
"media": {
"markdown": "media/markdown.md"
},
"completionEvents": [
"onSettingChanged:getting-started-sample.sampleSetting"
]
}
]
}
]
},
"qna": "false",
"icon": "media/marketplace/icon.png",
"galleryBanner": {
"color": "#1F1F23",
"theme": "dark"
},
"sponsor": {
"url": "https://github.com/sponsors/rolandostar"
},
"badges": [
{
"url": "https://github.com/rolandostar/tabletopsimulator-lua-vscode/actions/workflows/build-docs.yaml/badge.svg?branch=main",
"href": "https://github.com/rolandostar/tabletopsimulator-lua-vscode/actions/workflows/build-docs.yaml",
"description": ""
},
{
"url": "https://github.com/rolandostar/tabletopsimulator-lua-vscode/actions/workflows/deploy-to-marketplace.yaml/badge.svg?branch=main",
"href": "https://github.com/rolandostar/tabletopsimulator-lua-vscode/actions/workflows/deploy-to-marketplace.yaml",
"description": ""
},
{
"url": "https://badgen.net/badge/uses/TS/blue",
"href": "https://github.com/rolandostar/tabletopsimulator-lua-vscode",
"description": ""
},
{
"url": "https://badgen.net/badge/designed in/MS Paint/grey",
"href": "https://github.com/rolandostar/tabletopsimulator-lua-vscode",
"description": ""
},
{
"url": "https://badgen.net/badge/made%20with/%E2%9D%A4/red",
"href": "https://github.com/rolandostar/tabletopsimulator-lua-vscode",
"description": "<3"
}
],
"__metadata": {
"id": "0d2c6449-7895-4837-aad4-bb90deb5b47a",
"publisherDisplayName": "rolandostar",
"publisherId": "409bdebf-bb4b-4a76-a60a-8fa2dc343024"
}
}