forked from Tencent/LuaPanda
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
executable file
·314 lines (314 loc) · 8.71 KB
/
package.json
File metadata and controls
executable file
·314 lines (314 loc) · 8.71 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
{
"name": "luapanda",
"displayName": "LuaPanda",
"version": "3.1.0",
"publisher": "stuartwang",
"description": "lua debug and code tools for VS Code.",
"author": {
"name": "stuartwang",
"email": "3030078087@qq.com"
},
"license": "BSD",
"keywords": [
"lua",
"debug",
"analyzer",
"luaanalyzer"
],
"engines": {
"vscode": "^1.25.0",
"node": "^7.9.0"
},
"icon": "images/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": "7.0.55",
"@types/vscode": "^1.25.0",
"mocha": "5.0.1",
"tslint": "5.9.1",
"typescript": "2.6.2",
"vsce": "1.37.5",
"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": {
"launch": {
"properties": {
"program": {
"type": "string",
"description": "随调试器启动的可执行文件路径",
"default": ""
},
"args": {
"type": "array",
"description": "program 执行时需要的参数, 结构是一个字符串数组",
"default": []
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": false
},
"stopOnEntry": {
"type": "boolean",
"description": "调试器启动后自动停止在调用的第一行代码处",
"default": true
},
"cwd": {
"type": "string",
"description": "exactltPathMode : 拼接路径 | autoPathMode : workspace 路径",
"default": "${workspaceFolder}"
},
"isNeedB64EncodeStr": {
"type": "boolean",
"description": "是否使用base64编码传输字符串,默认请开启。",
"default": true
},
"luaFileExtension": {
"type": "string",
"description": "Lua文件后缀",
"default": ""
},
"pathCaseSensitivity": {
"type": "boolean",
"description": "文件路径大小写敏感, 默认true",
"default": true
},
"connectionPort": {
"type": "number",
"description": "设置连接的端口号,默认8818",
"default": 8818
},
"autoReconnect": {
"type": "boolean",
"description": "当连接被lua端断开时,VSCode自动等待重连",
"default": true
},
"TempFilePath": {
"type": "string",
"description": "调试产生的临时文件存放路径,请确保文件夹存在",
"default": "${workspaceFolder}"
},
"logLevel": {
"type": "number",
"description": "日志等级. 0:all所有信息; 1:info仅必要信息(默认); 2:error仅错误",
"default": 1
},
"useCHook": {
"type": "boolean",
"description": "使用C Hook模块, 提高运行效率。默认true。设置为false则使用 lua hook 调试",
"default": true
},
"packagePath": {
"type": "array",
"description": "数组中的路径在运行时会加入package.path. 如 /Script/?.lua ",
"default": []
},
"luaPath": {
"type": "string",
"description": "lua命令的路径和文件名. 如 C:/lua5.3/lua.exe ",
"default": ""
},
"docPathReplace": {
"type": "array",
"description": "被调试文件和VSCode中加载文件路径不一致时,通过此项设置,完成路径替换。输入格式[\"被替换掉的路径\", \"新路径\"]",
"default": []
},
"autoPathMode": {
"type": "boolean",
"description": "是否使用自动路径模式",
"default": true
},
"updateTips": {
"type": "boolean",
"description": "是否打开 LuaPanda 自动升级提示",
"default": true
}
}
}
},
"initialConfigurations": [
{
"type": "lua",
"request": "launch",
"name": "LuaPanda",
"program": "",
"cwd": "${workspaceFolder}",
"luaFileExtension": "",
"connectionPort": 8818,
"pathCaseSensitivity": true,
"stopOnEntry": true,
"useCHook": true,
"autoPathMode": true,
"logLevel": 1
},
{
"type": "lua",
"request": "launch",
"name": "LuaPanda-Attach"
},
{
"type": "lua",
"request": "launch",
"name": "LuaPanda-DebugFile",
"luaPath": "",
"packagePath": [],
"luaFileExtension": "",
"connectionPort": 8818,
"stopOnEntry": true,
"useCHook": true,
"logLevel": 1
}
]
}
]
}
}