-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathpackage.json
319 lines (319 loc) · 10.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
{
"name": "luacoderassist",
"displayName": "LuaCoderAssist",
"description": "lua编程助手,包括代码补全、符号预览&跳转、函数特征帮助、符号类型推导、静态检查、格式化、代码度量等功能",
"icon": "images/icon.png",
"version": "2.5.0",
"publisher": "liwangqian",
"engines": {
"vscode": "^1.25.0"
},
"categories": [
"Programming Languages",
"Linters",
"Snippets",
"Formatters"
],
"keywords": [
"lua",
"completion",
"luacheck",
"format",
"metric",
"love",
"jit"
],
"activationEvents": [
"onLanguage:lua"
],
"main": "./client/extension",
"contributes": {
"commands": [
{
"command": "LuaCoderAssist.ldoc",
"title": "插入注释(Insert Lua Document)"
},
{
"command": "LuaCoderAssist.metrics.details",
"title": "显示代码度量详细信息(Show Code Metrics Details)"
},
{
"command": "LuaCoderAssist.busted.activate",
"title": "进入busted模式(Enter busted mode)"
},
{
"command": "LuaCoderAssist.busted.deactivate",
"title": "退出busted模式(Exit busted mode)"
}
],
"menus": {
"editor/context": [
{
"command": "LuaCoderAssist.ldoc",
"when": "resourceLangId == lua",
"group": "1_modification"
}
]
},
"configuration": {
"type": "Object",
"title": "Lua Coder Assistant Configuration",
"properties": {
"LuaCoderAssist.enable": {
"type": "boolean",
"default": true,
"description": "Enable/disable the extension."
},
"LuaCoderAssist.debug": {
"type": "boolean",
"default": false,
"description": "Debug information output enable."
},
"LuaCoderAssist.preloads": {
"type": "array",
"default": [],
"description": "Preload modules path, can be file or directory. DO NOT config a dirctory with a lot files for performance consideration. If a directory configured has a init.lua file, the file will be loaded instead of all file under this directory, otherwise, files in the directory and its subdir will be loaded"
},
"LuaCoderAssist.useLove": {
"type": "boolean",
"default": false,
"description": "Use `LOVE` libraries."
},
"LuaCoderAssist.useJit": {
"type": "boolean",
"default": false,
"description": "Use `LuaJit` libraries."
},
"LuaCoderAssist.luaPath": {
"type": "string",
"default": "",
"description": "Provide the lua path to help find the rigth module path, when there is some modules with same file name.",
"examples": [
"{workspaceRoot}/pathA/subPath0/subPath1/?.lua;{workspaceRoot}/pathB/subPath0/subPath1/?.lua"
]
},
"LuaCoderAssist.search.filters": {
"type": "array",
"default": [],
"description": "Filter patterns for file search."
},
"LuaCoderAssist.search.externalPaths": {
"type": "array",
"default": [],
"description": "External paths outside the workspaceroot to be search."
},
"LuaCoderAssist.search.followLinks": {
"type": "boolean",
"default": false,
"description": "Whether the links to be search."
},
"LuaCoderAssist.luaparse.luaversion": {
"type": "number",
"default": 5.1,
"enum": [
5.1,
5.2,
5.3
],
"description": "The lua version, for grammer match."
},
"LuaCoderAssist.luaparse.allowDefined": {
"type": "boolean",
"default": false,
"description": "Allow defining globals implicitly by setting them."
},
"LuaCoderAssist.symbol.showAnonymousFunction": {
"type": "boolean",
"default": true,
"description": "Show anonymous function in document symbol list."
},
"LuaCoderAssist.symbol.showFunctionOnly": {
"type": "boolean",
"default": false,
"description": "Only function is shown in document symbol list."
},
"LuaCoderAssist.luacheck.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable luacheck for static diagnostics."
},
"LuaCoderAssist.luacheck.automaticOption": {
"type": "boolean",
"default": true,
"description": "Define the luacheck cli options automatically."
},
"LuaCoderAssist.luacheck.options": {
"type": "array",
"default": [
"-m",
"-t"
],
"description": "Cli options for luacheck, see [luacheck](https://luacheck.readthedocs.io/en/stable/cli.html#command-line-options) for details."
},
"LuaCoderAssist.luacheck.onSave": {
"type": "boolean",
"default": true,
"description": "Run luacheck when file saved."
},
"LuaCoderAssist.luacheck.onTyping": {
"type": "boolean",
"default": true,
"description": "Run luacheck when file changed."
},
"LuaCoderAssist.luacheck.execPath": {
"type": "string",
"default": null,
"description": "Path of the luacheck excutable.(@ref https://github.com/mpeterv/luacheck)"
},
"LuaCoderAssist.luacheck.std": {
"type": "array",
"default": [
"busted"
],
"description": "Set standard globals.(@ref https://luacheck.readthedocs.io/en/stable/cli.html#command-line-options)"
},
"LuaCoderAssist.luacheck.ignore": {
"type": "array",
"default": [],
"description": "Filter out warnings matching patterns.(@ref http://luacheck.readthedocs.io/en/stable/cli.html)"
},
"LuaCoderAssist.luacheck.globals": {
"type": "array",
"default": [],
"description": "Add read-only global variables or fields.(@ref https://luacheck.readthedocs.io/en/stable/cli.html)"
},
"LuaCoderAssist.luacheck.jobs": {
"type": "integer",
"default": 1,
"description": "Number of jobs for parallel check.(@ref http://luacheck.readthedocs.io/en/stable/cli.html)"
},
"LuaCoderAssist.luacheck.fileSizeLimit": {
"type": "integer",
"default": 100,
"description": "File size (KB) limit for luacheck, performance consideration."
},
"LuaCoderAssist.luacheck.maxProblems": {
"type": "integer",
"default": 250,
"description": "Max problems to show."
},
"LuaCoderAssist.luacheck.configFilePath": {
"type": "string",
"default": "",
"description": "The path of '.luacheckrc'."
},
"LuaCoderAssist.luacheck.keepAfterClosed": {
"type": "boolean",
"default": true,
"description": "Keep diagnostic information after document closed."
},
"LuaCoderAssist.format.lineWidth": {
"type": "integer",
"default": 120,
"description": "Max character in one line."
},
"LuaCoderAssist.format.indentCount": {
"type": "integer",
"default": 4,
"description": "Indent count."
},
"LuaCoderAssist.format.quotemark": {
"type": "string",
"default": "single",
"description": "String quotation style, can be 'single' or 'double'."
},
"LuaCoderAssist.ldoc.authorInFunctionLevel": {
"type": "boolean",
"default": true,
"description": "Whether @author add to function level document."
},
"LuaCoderAssist.ldoc.authorName": {
"type": "string",
"default": "",
"description": "The author name."
},
"LuaCoderAssist.metric.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable the code metric codeLens."
},
"LuaCoderAssist.metric.logicalLineMax": {
"type": "integer",
"default": 50,
"description": "The max logical line of a function."
},
"LuaCoderAssist.metric.physicalLineMax": {
"type": "integer",
"default": 80,
"description": "The max physical line of a function."
},
"LuaCoderAssist.metric.cyclomaticMax": {
"type": "integer",
"default": 10,
"description": "The max complexity of a function."
},
"LuaCoderAssist.metric.maintainabilityMin": {
"type": "integer",
"default": 60,
"description": "The minimum maintainability index of a function."
},
"LuaCoderAssist.completion.autoInsertParameters": {
"type": "boolean",
"default": true,
"description": "Insert function parameter list automatically."
}
}
},
"snippets": [
{
"language": "lua",
"path": "./snippets/ldoc.json"
},
{
"language": "lua",
"path": "./snippets/lua.json"
}
]
},
"scripts": {
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test"
},
"bin": {
"lua-coder-assist": "server/server-stdio.js"
},
"dependencies": {
"autodetect-decoder-stream": "^1.0.3",
"check-types": "~4",
"escomplex": "0.2.5",
"escomplex-traits": "0.2.x",
"find-up": "^4.1.0",
"lodash": "^4.17.15",
"lua-fmt": "^2.6.0",
"luaparse": "^0.2.1",
"opn": "^5.5.0",
"underscore": "^1.9.1",
"vscode-languageclient": "^5.2.1",
"vscode-languageserver": "^5.2.1",
"vscode-uri": "^1.0.8",
"walk": "^2.3.9"
},
"devDependencies": {
"@types/mocha": "^2.2.48",
"@types/node": "^6.14.9",
"eslint": "^3.6.0",
"mocha": "^2.3.3",
"typescript": "^2.9.2",
"vscode": "^1.1.36"
},
"homepage": "https://github.com/liwangqian/LuaCoderAssist/blob/master/README.md",
"bugs": {
"url": "https://github.com/liwangqian/LuaCoderAssist/issues",
"email": "[email protected]"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/liwangqian/LuaCoderAssist"
}
}