-
Notifications
You must be signed in to change notification settings - Fork 356
/
package.json
466 lines (466 loc) · 16 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
458
459
460
461
462
463
464
465
466
{
"name": "luapanda",
"displayName": "LuaPanda",
"version": "3.3.1",
"publisher": "stuartwang",
"description": "lua debug and code tools for VS Code.",
"author": {
"name": "stuartwang",
"email": "[email protected]"
},
"license": "BSD",
"keywords": [
"lua",
"debug",
"analyzer",
"luaanalyzer",
"luadebug",
"lua debug",
"lua panda"
],
"engines": {
"vscode": "^1.25.0",
"node": "^16.13.2"
},
"icon": "res/icon/luapanda_logo.png",
"categories": [
"Debuggers",
"Programming Languages"
],
"repository": {
"type": "git",
"url": "https://github.com/Tencent/LuaPanda.git"
},
"bugs": {
"url": "https://github.com/Tencent/LuaPanda.git"
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./src",
"watch": "tsc -watch -p ./src",
"package": "vsce package",
"publish": "vsce package"
},
"dependencies": {
"await-notify": "1.0.1",
"lua-fmt": "^2.6.0",
"luaparse": "^0.2.1",
"path-reader": "^1.1.0",
"univac": "0.0.8",
"urlencode": "^1.1.0",
"vscode-debugadapter": "1.27.0",
"vscode-debugprotocol": "1.27.0",
"vscode-languageclient": "^5.2.1",
"vscode-languageserver": "^5.2.1"
},
"devDependencies": {
"@types/mocha": "2.2.48",
"@types/node": "^16.13.2",
"@types/vscode": "^1.25.0",
"mocha": "10.2.0",
"tslint": "5.9.1",
"typescript": "^5.2.2",
"vsce": "^2.15.0",
"vscode-debugadapter-testsupport": "1.27.0"
},
"main": "./out/extension",
"activationEvents": [
"onLanguage:lua",
"onDebug"
],
"contributes": {
"breakpoints": [
{
"language": "lua"
}
],
"commands": [
{
"command": "luapanda.reloadLuaDebug",
"title": "Reload LuaPanda"
},
{
"command": "luapanda.LuaGarbageCollect",
"title": "LuaGarbageCollect"
},
{
"command": "luapanda.openSettingsPage",
"title": "openSettingsPage"
}
],
"configuration": {
"type": "object",
"title": "lua-panda configuration",
"properties": {
"lua_analyzer.codeLinting.enable": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enable/Disable code lingting. This is the master switch of code linting."
},
"lua_analyzer.codeLinting.luacheckPath": {
"scope": "resource",
"type": "string",
"default": "",
"description": "The laucheck executable file path, use plugin default config if not set."
},
"lua_analyzer.codeLinting.luaVersion": {
"scope": "resource",
"type": "string",
"enum": [
"5.1",
"5.3",
"5.1+5.3"
],
"default": "5.1+5.3",
"description": "Set standard globals for luacheck."
},
"lua_analyzer.codeLinting.checkWhileTyping": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Controls wether to check the syntax while typing."
},
"lua_analyzer.codeLinting.checkAfterSave": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Controls wether to check the syntax after file saved."
},
"lua_analyzer.codeLinting.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the luacheck."
},
"lua_analyzer.codeLinting.maxLineLength": {
"scope": "resource",
"type": "number",
"default": 120,
"description": "Set maximum allowed line length (default: 120)."
},
"lua_analyzer.codeLinting.ignoreFolderRegularExpression": {
"scope": "resource",
"type": "string",
"default": ".*/res/lua/\\w+\\.lua;.*vscode/LuaPanda/IntelliSenseRes/;",
"description": "The regular expressions used to ignore files in some specific folders. Use semicolons to separate different regular expressions."
},
"lua_analyzer.codeLinting.ignoreErrorCode": {
"scope": "resource",
"type": "string",
"default": "",
"description": "Used to ignore some warnings or errors. Use semicolons to separate different error codes. For example, 211 means \"unused local variable\", you will see \"unused variable 'xxx' lua-analyzer(211)\" in the problems window. View https://luacheck.readthedocs.io/en/stable/warnings.html for more information."
},
"lua_analyzer.codeLinting.ignoreGlobal": {
"scope": "resource",
"type": "string",
"default": "UnityEngine;com",
"description": "Used to ignore global variable for luacheck. Use semicolons to separate different variables."
},
"lua_analyzer.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
}
}
},
"snippets": [
{
"language": "lua",
"path": "./res/snippets/snippets.json"
}
],
"debuggers": [
{
"type": "lua",
"label": "LuaPanda",
"program": "./out/debug/debugAdapter.js",
"runtime": "node",
"configurationAttributes": {
"attach": {
"properties": {
"stopOnEntry": {
"type": "boolean",
"description": "After the debugger connect, it automatically stops at the first line of code called. \n调试器启动后自动停止在调用的第一行代码处。",
"default": true
},
"cwd": {
"type": "string",
"description": "exactltPathMode : 拼接路径 | autoPathMode : workspace 路径。",
"default": "${workspaceFolder}"
},
"isNeedB64EncodeStr": {
"type": "boolean",
"description": "Whether use base64 encoding for transmit strings. default true. \n是否使用base64编码传输字符串,默认请开启。",
"default": true
},
"luaFileExtension": {
"type": "string",
"description": "Lua file suffix. \nLua文件后缀。",
"default": ""
},
"pathCaseSensitivity": {
"type": "boolean",
"description": "File path is case sensitive, default true. \n文件路径大小写敏感, 默认true。",
"default": true
},
"connectionPort": {
"type": "number",
"description": "The port number of the connection. Default is 8818. \n设置连接的端口号,默认8818。",
"default": 8818
},
"autoReconnect": {
"type": "boolean",
"description": "When disconnected by the lua end, VSCode automatically waits for new reconnection. \n当被lua端断开连接时,VSCode自动等待重连。",
"default": true
},
"TempFilePath": {
"type": "string",
"description": "Temporary file storage path generated during debugging, please ensure this folder exists. \n调试产生的临时文件存放路径,请确保文件夹存在。",
"default": "${workspaceFolder}"
},
"rootFolder": {
"type": "string",
"description": "记录vscode打开的目录,不要修改它的值,需用它找到 launch.json",
"default": "${workspaceFolder}"
},
"logLevel": {
"type": "number",
"description": "Log level. 0: All information(for developer); 1: Only necessary information (default); 2: Only error. \n日志等级. 0:all所有信息(面向开发者); 1:info仅必要信息(默认); 2:error仅错误。",
"default": 1
},
"useCHook": {
"type": "boolean",
"description": "Use C Hook module to improve efficiency. The default is true. If set false debug with lua hook. \n使用C Hook模块, 提高运行效率。默认true。设置为false则使用 lua hook 调试。",
"default": true
},
"packagePath": {
"type": "array",
"description": "Path added to package.path at runtime, such as /Script/?.lua. \n运行时加入package.path的路径, 如 /Script/?.lua。",
"default": []
},
"luaPath": {
"type": "string",
"description": "Lua command path and file name such as C:/lua5.3/lua.exe. \nlua命令的路径和文件名. 如 C:/lua5.3/lua.exe。 ",
"default": ""
},
"docPathReplace": {
"type": "array",
"description": "被调试文件和VSCode中加载文件路径不一致时,通过此项设置,完成路径替换。输入格式[\"被替换掉的路径\", \"新路径\"]。",
"default": []
},
"autoPathMode": {
"type": "boolean",
"description": "Whether to use automatic path mode. \n是否使用自动路径模式。",
"default": true
},
"updateTips": {
"type": "boolean",
"description": "Whether open LuaPanda automatic upgrade prompt. \n是否打开 LuaPanda 自动升级提示。",
"default": true
},
"tag": {
"type": "string",
"enum": [
"normal",
"attach",
"independent_file"
],
"description": "Mark run mode, don't modify it. There are three modes: normal, attach, independent_file. \n标记运行方式,请勿修改。 有三种模式 normal , attach , independent_file",
"default": "normal"
},
"dbCheckBreakpoint": {
"type": "string",
"description": "If adapter is client , the IP to connect. Default is '127.0.0.1'。",
"default": "127.0.0.1"
},
"distinguishSameNameFile": {
"type": "boolean",
"description": "Whether distinguish breakpoint in files with same name",
"default": false
},
"truncatedOPath": {
"type": "string",
"description": " ",
"default": ""
},
"DevelopmentMode": {
"type": "boolean",
"description": "Whether enter development mode",
"default": false
}
}
},
"launch": {
"properties": {
"program": {
"type": "string",
"description": "Path to executable file which launched with debugger(not a lua file), default \"\". \n随调试器启动的可执行文件路径(非lua文件), 如无可以填\"\"。",
"default": ""
},
"args": {
"type": "array",
"description": "Program execution parameters, the structure is an array of strings. \nprogram 执行时需要的参数, 结构是一个字符串数组。",
"default": []
},
"stopOnEntry": {
"type": "boolean",
"description": "After the debugger connect, it automatically stops at the first line of code called. \n调试器启动后自动停止在调用的第一行代码处。",
"default": true
},
"cwd": {
"type": "string",
"description": "exactltPathMode : 拼接路径 | autoPathMode : workspace 路径。",
"default": "${workspaceFolder}"
},
"isNeedB64EncodeStr": {
"type": "boolean",
"description": "Whether use base64 encoding for transmit strings. default true. \n是否使用base64编码传输字符串,默认请开启。",
"default": true
},
"luaFileExtension": {
"type": "string",
"description": "Lua file suffix. \nLua文件后缀。",
"default": ""
},
"pathCaseSensitivity": {
"type": "boolean",
"description": "File path is case sensitive, default true. \n文件路径大小写敏感, 默认true。",
"default": true
},
"connectionPort": {
"type": "number",
"description": "The port number of the connection. Default is 8818. \n设置连接的端口号,默认8818。",
"default": 8818
},
"autoReconnect": {
"type": "boolean",
"description": "When disconnected by the lua end, VSCode automatically waits for new reconnection. \n当被lua端断开连接时,VSCode自动等待重连。",
"default": true
},
"rootFolder": {
"type": "string",
"description": "记录vscode打开的目录,可以利用它找到 launch.json",
"default": "${workspaceFolder}"
},
"TempFilePath": {
"type": "string",
"description": "Temporary file storage path generated during debugging, please ensure this folder exists. \n调试产生的临时文件存放路径,请确保文件夹存在。",
"default": "${workspaceFolder}"
},
"logLevel": {
"type": "number",
"description": "Log level. 0: All information(for developer); 1: Only necessary information (default); 2: Only error. \n日志等级. 0:all所有信息(面向开发者); 1:info仅必要信息(默认); 2:error仅错误。",
"default": 1
},
"useCHook": {
"type": "boolean",
"description": "Use C Hook module to improve efficiency. The default is true. If set false debug with lua hook. \n使用C Hook模块, 提高运行效率。默认true。设置为false则使用 lua hook 调试。",
"default": true
},
"packagePath": {
"type": "array",
"description": "Path added to package.path at runtime, such as /Script/?.lua. \n运行时加入package.path的路径, 如 /Script/?.lua。",
"default": []
},
"luaPath": {
"type": "string",
"description": "Lua command path and file name such as C:/lua5.3/lua.exe. \nlua命令的路径和文件名. 如 C:/lua5.3/lua.exe。 ",
"default": ""
},
"docPathReplace": {
"type": "array",
"description": "被调试文件和VSCode中加载文件路径不一致时,通过此项设置,完成路径替换。输入格式[\"被替换掉的路径\", \"新路径\"]。",
"default": []
},
"autoPathMode": {
"type": "boolean",
"description": "Whether to use automatic path mode. \n是否使用自动路径模式。",
"default": true
},
"updateTips": {
"type": "boolean",
"description": "Whether open LuaPanda automatic upgrade prompt. \n是否打开 LuaPanda 自动升级提示。",
"default": true
},
"tag": {
"type": "string",
"description": "Mark run mode, don't modify it. There are three modes: normal, attach, independent_file. \n标记运行方式,请勿修改。 有三种模式 normal , attach , independent_file",
"default": "normal"
},
"VSCodeAsClient": {
"type": "boolean",
"description": "Usually adapter as Server, lua process as Client. this mode is invert these. Please also set connectionIP。",
"default": false
},
"connectionIP": {
"type": "string",
"description": "If adapter is client , the IP to connect. Default is '127.0.0.1'。",
"default": "127.0.0.1"
},
"dbCheckBreakpoint": {
"type": "boolean",
"description": "Whether double check breakpoint hit",
"default": true
},
"distinguishSameNameFile": {
"type": "boolean",
"description": "Whether distinguish breakpoint in files with same name",
"default": false
},
"truncatedOPath": {
"type": "string",
"description": " ",
"default": ""
},
"DevelopmentMode": {
"type": "boolean",
"description": "Whether enter development mode",
"default": false
},
"description": {
"type": "string",
"description": "当前模式的描述",
"default": ""
}
}
}
},
"initialConfigurations": [
{
"type": "lua",
"request": "launch",
"tag": "normal",
"name": "LuaPanda",
"description": "通用模式,通常调试项目请选择此模式 | launchVer:3.2.0",
"cwd": "${workspaceFolder}",
"luaFileExtension": "",
"connectionPort": 8818,
"stopOnEntry": true,
"useCHook": true,
"autoPathMode": true
},
{
"type": "lua",
"request": "launch",
"tag": "independent_file",
"name": "LuaPanda-IndependentFile",
"description": "独立文件调试模式,使用前请参考文档",
"luaPath": "",
"packagePath": [],
"luaFileExtension": "",
"connectionPort": 8820,
"stopOnEntry": true,
"useCHook": true
}
]
}
]
}
}