Skip to content

Commit 25c8a89

Browse files
committed
update settings
1 parent 8736122 commit 25c8a89

File tree

5 files changed

+64
-5
lines changed

5 files changed

+64
-5
lines changed

package.nls.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"config.IntelliSense.traceFieldInject": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
44
"config.IntelliSense.traceLocalSet": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
55
"config.IntelliSense.traceReturn": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
6-
"config.awakened.cat": "PLAY WITH ME >_<\n\n(This will enable the beta version which is still in development. Feedback is welcome! Reload the window after changing this option!)",
76
"config.color.mode": "Color mode.",
87
"config.color.mode.Grammar": "Grammar color.",
98
"config.color.mode.Semantic": "Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect.",
@@ -42,6 +41,10 @@
4241
"config.diagnostics.severity": "Modified diagnostic severity.",
4342
"config.diagnostics.workspaceDelay": "Latency (milliseconds) for workspace diagnostics. When you start the workspace, or edit any file, the entire workspace will be re-diagnosed in the background. Set to negative to disable workspace diagnostics.",
4443
"config.diagnostics.workspaceRate": "Workspace diagnostics run rate (%). Decreasing this value reduces CPU usage, but also reduces the speed of workspace diagnostics. The diagnosis of the file you are currently editing is always done at full speed and is not affected by this setting.",
44+
"config.hint.arrayIndex": "Show hints of array index when constructing a table.",
45+
"config.hint.arrayIndex.Auto": "Show hints only when the table is greater than 3 items, or the table is a mixed table.",
46+
"config.hint.arrayIndex.Disable": "Disable hints of array index.",
47+
"config.hint.arrayIndex.Enable": "Show hints in all tables.",
4548
"config.hint.enable": "Enabel hint.",
4649
"config.hint.paramName": "Show hints of parameter name at the function call.",
4750
"config.hint.paramName.All": "All types of parameters are shown.",
@@ -79,6 +82,5 @@
7982
"config.workspace.maxPreload": "Max preloaded files.",
8083
"config.workspace.preloadFileSize": "Skip files larger than this value (KB) when preloading.",
8184
"config.workspace.useGitIgnore": "Ignore files list in `.gitignore` .",
82-
"config.workspace.userThirdParty": "Add private third-party library configuration file paths here, please refer to the built-in [configuration file path](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)",
83-
"config.zzzzzz.cat": "DONT TOUCH ME, LET ME SLEEP >_<"
85+
"config.workspace.userThirdParty": "Add private third-party library configuration file paths here, please refer to the built-in [configuration file path](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)"
8486
}

package.nls.zh-cn.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
"config.diagnostics.unused-vararg": "未使用的不定参数",
5959
"config.diagnostics.workspaceDelay": "进行工作区诊断的延迟(毫秒)。当你启动工作区,或编辑了任意文件后,将会在后台对整个工作区进行重新诊断。设置为负数可以禁用工作区诊断。",
6060
"config.diagnostics.workspaceRate": "工作区诊断的运行速率(百分比)。降低该值会减少CPU占用,但是也会降低工作区诊断的速度。你当前正在编辑的文件的诊断总是全速完成,不受该选项影响。",
61+
"config.hint.arrayIndex": "在构造表时提示数组索引。",
62+
"config.hint.arrayIndex.Auto": "只有表大于3项,或者表是混合类型时才进行提示。",
63+
"config.hint.arrayIndex.Disable": "禁用数组索引提示。",
64+
"config.hint.arrayIndex.Enable": "所有的表中都提示数组索引。",
6165
"config.hint.enable": "启用内联提示。",
6266
"config.hint.paramName": "在函数调用处提示参数名。",
6367
"config.hint.paramName.All": "所有类型的参数均进行提示。",
@@ -95,6 +99,5 @@
9599
"config.workspace.maxPreload": "最大预加载文件数。",
96100
"config.workspace.preloadFileSize": "预加载时跳过大小大于该值(KB)的文件。",
97101
"config.workspace.useGitIgnore": "忽略 `.gitignore` 中列举的文件。",
98-
"config.workspace.userThirdParty": "在这里添加私有的第三方库适配文件路径,请参考内置的[配置文件路径](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)",
99-
"config.zzzzzz.cat": "DONT TOUCH ME, LET ME SLEEP >_<"
102+
"config.workspace.userThirdParty": "在这里添加私有的第三方库适配文件路径,请参考内置的[配置文件路径](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)"
100103
}

package/configuration.lua

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,22 @@ local config = {
477477
},
478478
markdownDescription = '%config.hint.paramName%',
479479
},
480+
["Lua.hint.arrayIndex"] = {
481+
scope = 'resource',
482+
type = "string",
483+
default = "Auto",
484+
enum = {
485+
"Enable",
486+
"Auto",
487+
"Disable",
488+
},
489+
markdownEnumDescriptions = {
490+
"%config.hint.arrayIndex.Enable%",
491+
"%config.hint.arrayIndex.Auto%",
492+
"%config.hint.arrayIndex.Disable%",
493+
},
494+
markdownDescription = "%config.hint.arrayIndex%"
495+
},
480496
['Lua.misc.parameters'] = {
481497
scope = 'resource',
482498
type = "array",

setting/schema-zh-cn.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,9 @@
11451145
},
11461146
"hint": {
11471147
"properties": {
1148+
"arrayIndex": {
1149+
"$ref": "#/properties/hint.arrayIndex"
1150+
},
11481151
"enable": {
11491152
"$ref": "#/properties/hint.enable"
11501153
},
@@ -1159,6 +1162,22 @@
11591162
}
11601163
}
11611164
},
1165+
"hint.arrayIndex": {
1166+
"default": "Auto",
1167+
"enum": [
1168+
"Enable",
1169+
"Auto",
1170+
"Disable"
1171+
],
1172+
"markdownDescription": "在构造表时提示数组索引。",
1173+
"markdownEnumDescriptions": [
1174+
"所有的表中都提示数组索引。",
1175+
"只有表大于3项,或者表是混合类型时才进行提示。",
1176+
"禁用数组索引提示。"
1177+
],
1178+
"scope": "resource",
1179+
"type": "string"
1180+
},
11621181
"hint.enable": {
11631182
"default": false,
11641183
"markdownDescription": "启用内联提示。",

setting/schema.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,9 @@
11451145
},
11461146
"hint": {
11471147
"properties": {
1148+
"arrayIndex": {
1149+
"$ref": "#/properties/hint.arrayIndex"
1150+
},
11481151
"enable": {
11491152
"$ref": "#/properties/hint.enable"
11501153
},
@@ -1159,6 +1162,22 @@
11591162
}
11601163
}
11611164
},
1165+
"hint.arrayIndex": {
1166+
"default": "Auto",
1167+
"enum": [
1168+
"Enable",
1169+
"Auto",
1170+
"Disable"
1171+
],
1172+
"markdownDescription": "Show hints of array index when constructing a table.",
1173+
"markdownEnumDescriptions": [
1174+
"Show hints in all tables.",
1175+
"Show hints only when the table is greater than 3 items, or the table is a mixed table.",
1176+
"Disable hints of array index."
1177+
],
1178+
"scope": "resource",
1179+
"type": "string"
1180+
},
11621181
"hint.enable": {
11631182
"default": false,
11641183
"markdownDescription": "Enabel hint.",

0 commit comments

Comments
 (0)