forked from k0204/LuaIde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
425 lines (423 loc) · 11 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
{
"name": "luaide",
"displayName": "Luaide",
"description": "luaIde unity cocos quick debugger",
"license": "MIT",
"version": "0.3.7",
"publisher": "kangping",
"author": {
"name": "kangping",
"email": "[email protected]"
},
"engines": {
"vscode": "^1.10.0"
},
"icon": "images/logo.png",
"categories": [
"Languages",
"Debuggers",
"Snippets"
],
"activationEvents": [
"onLanguage:lua"
],
"main": "./out/src/extension",
"contributes": {
"luaideConfig": {},
"breakpoints": [
{
"language": "lua"
}
],
"debuggers": [
{
"type": "lua",
"label": "LuaDebug",
"enableBreakpointsFor": {
"languageIds": [
"lua"
]
},
"program": "./out/src/debugger/LuaDebug.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"runtimeType",
"localRoot",
"post",
"printType",
"exePath"
],
"properties": {
"runtimeType": {
"type": "string",
"default": "Cocos2",
"description": "运行时类型",
"enum": [
"Cocos2",
"Cocos3"
]
},
"host": {
"type": "string",
"description": "调试器的地址(仅Lua51 内置有效)",
"default": "localhost"
},
"port": {
"type": "number",
"description": "调试器的端口",
"default": 7003
},
"mainFile": {
"type": "string",
"description": "--选填 启动的lua 文件名 运行程序支持 workdir 当做 file 进行传入",
"default": "${file}"
},
"localRoot": {
"type": "string",
"description": "--必填 当前文件目录 如果 运行程序支持 workdir 该参数当做 workdir进行传入",
"default": "${workspaceRoot}"
},
"scripts": {
"type": "array",
"default": [],
"description": "--必填 源文件目录(package.path 中的路径对应的本地路径)",
"items": {
"type": "string"
}
},
"exePath": {
"type": "string",
"description": "--必填 执行文件路径",
"default": ""
},
"printType": {
"type": "number",
"default": 1,
"description": "--必填 print打印方式 1 控制台和系统输出,2 控制台输出,3 系统输出",
"enum": [
1,
2,
3
]
},
"localRootDesc": {
"type": "string"
},
"mainFileDesc": {
"type": "string"
},
"portDesc": {
"type": "string"
},
"scriptsDesc": {
"type": "string"
},
"exePathDesc1": {
"type": "string"
},
"exePathDesc2": {
"type": "string"
},
"exePathDesc3": {
"type": "string"
},
"printTypeDesc": {
"type": "string"
}
}
},
"attach": {
"required": [
"runtimeType",
"localRoot",
"post",
"printType"
],
"properties": {
"runtimeType": {
"type": "string",
"default": "Cocos2",
"description": "运行时类型",
"enum": [
"Cocos2",
"Cocos3",
"Unity"
]
},
"localRoot": {
"type": "string",
"description": "--必填 当前文件目录",
"default": "${workspaceRoot}"
},
"scripts": {
"type": "array",
"default": [],
"description": "--必填 源文件目录(package.path 中的路径对应的本地路径)",
"items": {
"type": "string"
}
},
"printType": {
"type": "number",
"default": 1,
"description": "--必填 print打印方式 1 控制台和系统输出,2 控制台输出,3 系统输出",
"enum": [
1,
2,
3
]
},
"port": {
"type": "number",
"description": "--必填 调试器的端口",
"default": 7003
},
"scriptsDesc": {
"type": "string"
},
"localRootDesc": {
"type": "string"
},
"portDesc": {
"type": "string"
},
"printTypeDesc": {
"type": "string"
}
}
}
},
"initialConfigurations": [
{
"name": "Cocos2-launch",
"type": "lua",
"request": "launch",
"runtimeType": "Cocos2",
"localRootDesc": "--必填 当前文件夹目录 如果 运行程序支持 workdir 该参数当做 workdir进行传入",
"localRoot": "${workspaceRoot}",
"mainFileDesc": "-- 先填 启动的lua 文件名 运行程序支持 workdir 当做 file 进行传入 不支持可不填",
"mainFile": "src/main.lua",
"portDesc": "--必填 调试器的端口 可修改 与调用LuaDebug 的端口对应",
"port": 7003,
"exePathDesc1": "--必填 执行文件路径",
"exePathDesc2": "--必填 win-> ",
"exePathDesc3": "--必填 mac ->/Users/k0204/Desktop/quickv3/quickv3 Mac.app/Contents/MacOS/quickv3 Mac",
"exePath": "/Users/k0204/Desktop/quickv3/quickv3 Mac.app/Contents/MacOS/quickv3 Mac",
"printTypeDesc": "--必填 print打印方式 1 控制台和系统输出,2 控制台输出,3 系统输出",
"printType": 1
},
{
"name": "COCOS(remote debugging)",
"type": "lua",
"request": "attach",
"runtimeType": "Cocos2",
"localRootDesc": "--必填 当前文件夹目录",
"localRoot": "${workspaceRoot}",
"portDesc": "--必填 调试器的端口 可修改 与调用LuaDebug 的端口对应",
"port": 7003,
"printTypeDesc": "--必填 print打印方式 1 控制台和系统输出,2 控制台输出,3 系统输出",
"printType": 1
},
{
"name": "Unity-ulua",
"type": "lua",
"request": "attach",
"runtimeType": "Unity",
"localRootDesc": "--必填 当前文件夹目录 如果 运行程序支持 workdir 该参数当做 workdir进行传入",
"localRoot": "${workspaceRoot}",
"portDesc": "--必填 调试器的端口 可修改 与调用LuaDebug 的端口对应",
"port": 7003,
"printTypeDesc": "--必填 print打印方式 1 控制台和系统输出,2 控制台输出,3 系统输出",
"printType": 1
}
]
}
],
"snippets": [
{
"language": "lua",
"path": "./snippets/snippets.json"
}
],
"commands": [
{
"command": "luaide.changecase.toUpperCase",
"title": "转换为大写"
},
{
"command": "luaide.changecase.toLowerCase",
"title": "转换为小写"
},
{
"command": "luaide.utils.createModuleFunction",
"title": "创建模块方法"
},
{
"command": "luaide.utils.createFunction",
"title": "创建方法"
},
{
"command": "luaide.utils.createTemplateFile",
"title": "创建模板文件"
},
{
"command": "luaide.utils.LoadLuaScript",
"title": "执行lua加载lua字符串"
},
{
"command": "luaide.donate",
"title": "弹出捐献页面"
}
],
"menus": {
"explorer/context": [
{
"command": "luaide.utils.createTemplateFile",
"group": "luaide"
}
],
"editor/context": [
{
"command": "luaide.changecase.toUpperCase",
"group": "luaide",
"when": "editorHasSelection && editorLangId == lua"
},
{
"command": "luaide.changecase.toLowerCase",
"group": "luaide",
"when": "editorHasSelection && editorLangId == lua"
},
{
"command": "luaide.utils.createModuleFunction",
"group": "luaide",
"when": "editorHasSelection && editorLangId == lua"
},
{
"command": "luaide.utils.createFunction",
"group": "luaide",
"when": "editorHasSelection && editorLangId == lua"
},
{
"command": "luaide.utils.createTemplateFile",
"when": "editorHasSelection && editorLangId == lua",
"group": "luaide"
}
]
},
"keybindings": [
{
"command": "luaide.changecase.toUpperCase",
"key": "CTRL+L CTRL+U",
"when": "editorHasSelection && editorLangId == lua"
},
{
"command": "luaide.changecase.toLowerCase",
"key": "CTRL+L CTRL+L",
"when": "editorHasSelection && editorLangId == lua"
},
{
"command": "luaide.utils.createTemplateFile",
"key": "CTRL+L CTRL+T",
"when": "editorTextFocus && editorLangId == lua"
},
{
"command": "luaide.utils.createFunction",
"key": "CTRL+L CTRL+F",
"when": "editorTextFocus && editorLangId == lua"
},
{
"command": "luaide.utils.createModuleFunction",
"key": "CTRL+L CTRL+M",
"when": "editorTextFocus && editorLangId == lua"
},
{
"command": "luaide.utils.LoadLuaScript",
"key": "CTRL+L CTRL+E"
}
],
"configuration": {
"type": "object",
"title": "LuaIde Configuration",
"properties": {
"luaide.macroList": {
"type": "array",
"default": [],
"description": "luaide 宏变量申明",
"items": {
"type": "object"
}
},
"luaide.luaTemplatesDir": {
"type": "string",
"default": "",
"description": "luaide 模板文件夹"
},
"luaide.luaOperatorCheck": {
"type": "boolean",
"default": true,
"description": "检查代码中运算符号是否正确,如果重载了运算符 需要将该项设置为false"
},
"luaide.luaFunArgCheck": {
"type": "boolean",
"default": true,
"description": "是否检查方法参数相同,如果为true 一个方法中出现相同的参数名就会报错,为false 就忽略"
},
"luaide.isShowDest": {
"type": "boolean",
"default": false,
"description": "是否显示介绍網頁"
},
"luaide.changeTextCheck": {
"type": "boolean",
"default": true,
"description": "代码修改时是否检查lua语法是否正确"
},
"luaide.moduleFunNestingCheck": {
"type": "boolean",
"default": false,
"description": "模块方法嵌套检查,如果在一个方法中出现另外一个模块方法会认为是错误的"
},
"luaide.scriptRoots": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "lua代码文件夹根目录(可以设置多个目录),用以require 时提示路径"
},
"luaide.maxFileSize": {
"type": "number",
"default": 2048,
"description": "解析的lua文件最大文件大小,默认为2MB,超过此设置将不解析"
},
"luaide.showOnLine": {
"type": "boolean",
"default": true,
"description": "是否显示LuaIde 当前使用人数"
}
}
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"typescript": "^2.0.3",
"vscode": "^1.0.0",
"mocha": "^2.3.3",
"@types/node": "^6.0.40",
"@types/mocha": "^2.2.32",
"@types/socket.io": "^1.4.27",
"@types/socket.io-client": "^1.4.27"
},
"dependencies": {
"vscode-debugadapter": "^1.17.0",
"vscode-debugprotocol": "^1.17.0",
"vscode-languageclient": "^3.1.0"
}
}