forked from wellshsu/luaide-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
474 lines (474 loc) · 12.3 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
467
468
469
470
471
472
473
474
{
"name": "luaide-lite",
"displayName": "luaide-lite",
"description": "Lua developement and debug tools.",
"license": "MIT",
"version": "0.2.4",
"repository": {
"type": "git",
"url": "https://github.com/hsu2017/luaide-lite"
},
"bugs": {
"url": "https://github.com/hsu2017/luaide-lite/issues"
},
"publisher": "wellshsu",
"author": {
"name": "wellshsu",
"email": "[email protected]"
},
"engines": {
"vscode": "^1.27.0"
},
"icon": "res/logo.png",
"categories": [
"Programming Languages",
"Debuggers",
"Snippets"
],
"keywords": [
"lua",
"format",
"luaide",
"unity",
"cocos",
"emmylua"
],
"activationEvents": [
"onLanguage:lua",
"onLanguage:typescript"
],
"main": "./out/src/extension.js",
"contributes": {
"breakpoints": [{
"language": "lua"
}],
"debuggers": [{
"type": "lua",
"label": "LuaDebug",
"program": "./out/src/debugger/LuaDebug.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"runtimeType",
"localRoot",
"printType"
],
"properties": {
"runtimeType": {
"type": "string",
"default": "Cocos2",
"description": "Runtime type\n运行时类型.",
"enum": [
"Cocos2",
"Cocos3",
"Lua51",
"Shell"
]
},
"port": {
"type": "number",
"description": "Required: remote debugger port\n必填: 远程调试端口.",
"default": 7003
},
"mainFile": {
"type": "string",
"description": "Example: src/main.lua\n例如: src/main.lua 需要启动的lua文件\nCocos中如果指定了commandLine则可以不设定.",
"default": "${file}"
},
"exePath": {
"type": "string",
"description": "Example: Path/to/exe\n填写可执行文件路径.",
"default": ""
},
"printType": {
"type": "number",
"default": 1,
"description": "Required: 1-console && sys, 2-console, 3-sys\n必填: 1-控制台和系统输出, 2-控制台输出, 3-系统输出.",
"enum": [
1,
2,
3
]
},
"printDate": {
"type": "boolean",
"default": true,
"description": "If add date before log content.\n日志内容是否前缀日期."
},
"localRoot": {
"type": "string",
"default": "${workspaceRoot}"
},
"commandLine": {
"type": "array",
"description": "command args\n--命令行参数.",
"default": [
"-workdir ${workspaceRoot}",
"-file src/main.lua"
]
}
}
},
"attach": {
"required": [
"runtimeType",
"localRoot",
"printType"
],
"properties": {
"runtimeType": {
"type": "string",
"default": "Unity",
"description": "Runtime type\n运行时类型.",
"enum": [
"Unity",
"Cocos2",
"Cocos3"
]
},
"localRoot": {
"type": "string",
"default": "${workspaceRoot}"
},
"printType": {
"type": "number",
"default": 1,
"description": "Required: 1-console && sys, 2-console, 3-sys\n必填: 1-控制台和系统输出, 2-控制台输出, 3-系统输出.",
"enum": [
1,
2,
3
]
},
"printDate": {
"type": "boolean",
"default": true,
"description": "If add date before log content.\n日志内容是否前缀日期."
},
"port": {
"type": "number",
"description": "Required: remote debugger port\n必填: 远程调试端口.",
"default": 7003
}
}
}
},
"initialConfigurations": [{
"name": "Unity-Remote",
"type": "lua",
"request": "attach",
"runtimeType": "Unity",
"localRoot": "${workspaceRoot}",
"port": 7003,
"printType": 1
},
{
"name": "Cocos-Remote",
"type": "lua",
"request": "attach",
"runtimeType": "Cocos2",
"localRoot": "${workspaceRoot}",
"port": 7003,
"printType": 1
},
{
"name": "Cocos-Launch",
"type": "lua",
"request": "launch",
"runtimeType": "Cocos2",
"localRoot": "${workspaceRoot}",
"mainFile": "src/main.lua",
"commandLine": [
"-workdir ${workspaceRoot}",
"-file src/main.lua"
],
"port": 7003,
"exePath": "Path/to/exe",
"printType": 1
},
{
"name": "Lua51-Launch",
"type": "lua",
"request": "launch",
"runtimeType": "Lua51",
"localRoot": "${workspaceRoot}",
"mainFile": "main",
"port": 7003,
"printType": 1
}
]
}],
"snippets": [{
"language": "lua",
"path": "./res/snippets.json"
}],
"languages": [{
"id": "lua",
"extensions": [
".lua"
],
"aliases": [
"luaide-lite"
],
"configuration": "./res/languages.json"
}],
"grammars": [{
"language": "lua",
"scopeName": "source.lua",
"path": "./res/grammars.json"
}],
"commands": [{
"command": "luaide-lite.toUpperCase",
"title": "To UpperCase"
},
{
"command": "luaide-lite.toLowerCase",
"title": "To LowerCase"
},
{
"command": "luaide-lite.about",
"title": "About luaide-lite"
},
{
"command": "luaide-lite.formatFiles",
"title": "Lua/Format File(s)"
},
{
"command": "luaide-lite.createTemplate",
"title": "Lua/New Template"
},
{
"command": "luaide-lite.openRes",
"title": "Lua/Open Res"
},
{
"command": "luaide-lite.convertTsFile",
"title": "Lua/To Typescript"
},
{
"command": "luaide-lite.convertTsText",
"title": "To Typescript"
}
],
"menus": {
"explorer/context": [{
"command": "luaide-lite.formatFiles",
"group": "luaide-lite"
},
{
"command": "luaide-lite.createTemplate",
"group": "luaide-lite"
},
{
"command": "luaide-lite.openRes",
"group": "luaide-lite"
}
],
"editor/context": [{
"command": "luaide-lite.toUpperCase",
"group": "luaide-lite",
"when": "editorHasSelection && editorLangId == lua"
},
{
"command": "luaide-lite.toLowerCase",
"group": "luaide-lite",
"when": "editorHasSelection && editorLangId == lua"
},
{
"command": "luaide-lite.convertTsText",
"group": "luaide-lite",
"when": "editorHasSelection"
}
]
},
"keybindings": [{
"command": "luaide-lite.toUpperCase",
"key": "CTRL+L CTRL+U",
"when": "editorHasSelection && editorLangId == lua"
},
{
"command": "luaide-lite.toLowerCase",
"key": "CTRL+L CTRL+L",
"when": "editorHasSelection && editorLangId == lua"
},
{
"command": "luaide-lite.convertTsText",
"key": "CTRL+K CTRL+V",
"when": "editorHasSelection"
}
],
"configuration": {
"type": "object",
"title": "luaide-lite",
"properties": {
"luaide-lite.core": {
"type": "string",
"default": "emmy",
"description": "emmy-'emmylua core',legacy-'old core'.\n设置代码解析库,emmy-'emmylua版本',legacy-'旧版本'."
},
"luaide-lite.javahome": {
"type": "string",
"default": null,
"description": "JAVA HOME.\nJava环境根目录."
},
"luaide-lite.enableHighlight": {
"type": "boolean",
"default": true,
"description": "Highlight global var.\n全局变量高亮显示."
},
"luaide-lite.highlightNormal": {
"type": "string",
"default": "#2B91AF",
"description": "Light theme highlight color.\n白色系主题高亮的颜色."
},
"luaide-lite.highlightDark": {
"type": "string",
"default": "#00D6AA",
"description": "Dark theme highlight color.\n黑色系主题高亮的颜色."
},
"luaide-lite.theme.light.parameter": {
"type": "string",
"default": "#565656",
"description": "Light theme parameter color.\n白色系主题参数颜色."
},
"luaide-lite.theme.light.global": {
"type": "string",
"default": "#2B91AF",
"description": "Light theme global color.\n白色系主题全局变量颜色."
},
"luaide-lite.theme.light.annotation": {
"type": "string",
"default": "#2B91AF",
"description": "Light theme annotation color.\n白色系主题注解颜色."
},
"luaide-lite.theme.dark.parameter": {
"type": "string",
"default": "#FFFFFF",
"description": "Dark theme parameter color.\n黑色系主题参数颜色."
},
"luaide-lite.theme.dark.global": {
"type": "string",
"default": "#00D6AA",
"description": "Dark theme parameter color.\n黑色系主题参数颜色."
},
"luaide-lite.theme.dark.annotation": {
"type": "string",
"default": "#00D6AA",
"description": "Dark theme annotation color.\n黑色系主题注解颜色."
},
"luaide-lite.enableFormat": {
"type": "boolean",
"default": true,
"description": "Enable internal format tool.\n是否使用格式化."
},
"luaide-lite.luaOperatorCheck": {
"type": "boolean",
"default": true,
"description": "Set false if you override operator in your code.\n是否解析符号重载."
},
"luaide-lite.luaFunArgCheck": {
"type": "boolean",
"default": true,
"description": "Check function args, 'set true' doesn't allow same arg identifier.\n是否解析函数的参数."
},
"luaide-lite.moduleFunNestingCheck": {
"type": "boolean",
"default": false,
"description": "Check module function nesting.\n模块方法嵌套检查, 如果在一个方法中出现另外一个模块方法会认为是错误的."
},
"luaide-lite.templateDefine": {
"type": "array",
"default": [],
"description": "Replace specific var in template file.\n模板值定义, 用于创建模板文件时全局替换.",
"items": {
"type": "object"
}
},
"luaide-lite.templateDir": {
"type": "string",
"default": "",
"description": "Template file directory, support recursive.\n模板文件目录."
},
"luaide-lite.exclude": {
"type": "array",
"default": [],
"description": "Exclude specific file(s) or folder(s).\n需要排除的文件夹, 这些文件夹将不会被解析.",
"items": {
"type": "string"
}
},
"luaide-lite.apiFolders": {
"type": "array",
"default": [],
"description": "API define's directory(relative/absolute).\nAPI提示文件路径(相对/绝对).",
"items": {
"type": "string"
}
},
"luaide-lite.formatHex": {
"type": "boolean",
"default": true,
"description": "Convert hex to decimal.\n是否格式化十六进制的数字."
},
"luaide-lite.numberRadix": {
"type": "array",
"default": [
10
],
"description": "Display number radix when debug number value.\n调试时需要显示的数字进制格式, 例如二进制, 十进制等."
},
"luaide-lite.enableDiagnostic": {
"type": "boolean",
"default": true,
"description": "Enable code diagnostic.\n是否启用代码分析, 如果禁用将不会有错误提示."
},
"luaide-lite.typescriptDefine": {
"type": "array",
"default": [],
"description": "Replace specific var in typescript content.\n转换为Typescript时的模板值定义, 用于全局替换转化内容.",
"items": {
"type": "object"
}
},
"luaide-lite.debugLanguageServer": {
"type": "boolean",
"default": false,
"description": "Debug language server(For developer).\n是否调试LSP(面向开发者)."
},
"luaide-lite.showWeather": {
"type": "boolean",
"default": false,
"description": "If show today's weather?.\n是否显示天气, 默认关闭."
},
"luaide-lite.formatUseTab": {
"type": "boolean",
"default": false,
"description": "If format document by indenting tab?.\n是否使用tab来缩进代码, 默认关闭."
}
}
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/mocha": "^2.2.32",
"@types/node": "^7.0.43",
"@types/socket.io": "^1.4.27",
"@types/socket.io-client": "^1.4.27",
"mocha": "^2.3.3",
"ts-loader": "^5.3.3",
"typescript": "^2.0.3",
"vscode": "^1.1.22"
},
"dependencies": {
"rd": "^1.1.2",
"vscode-debugadapter": "^1.31.0",
"vscode-debugprotocol": "^1.31.0",
"vscode-languageclient": "^5.1.0"
}
}