Skip to content
Snippets Groups Projects
Commit 25c8a89a authored by 最萌小汐's avatar 最萌小汐
Browse files

update settings

parent 87361221
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,6 @@
"config.IntelliSense.traceFieldInject": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
"config.IntelliSense.traceLocalSet": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
"config.IntelliSense.traceReturn": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
"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!)",
"config.color.mode": "Color mode.",
"config.color.mode.Grammar": "Grammar color.",
"config.color.mode.Semantic": "Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect.",
......@@ -42,6 +41,10 @@
"config.diagnostics.severity": "Modified diagnostic severity.",
"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.",
"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.",
"config.hint.arrayIndex": "Show hints of array index when constructing a table.",
"config.hint.arrayIndex.Auto": "Show hints only when the table is greater than 3 items, or the table is a mixed table.",
"config.hint.arrayIndex.Disable": "Disable hints of array index.",
"config.hint.arrayIndex.Enable": "Show hints in all tables.",
"config.hint.enable": "Enabel hint.",
"config.hint.paramName": "Show hints of parameter name at the function call.",
"config.hint.paramName.All": "All types of parameters are shown.",
......@@ -79,6 +82,5 @@
"config.workspace.maxPreload": "Max preloaded files.",
"config.workspace.preloadFileSize": "Skip files larger than this value (KB) when preloading.",
"config.workspace.useGitIgnore": "Ignore files list in `.gitignore` .",
"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)",
"config.zzzzzz.cat": "DONT TOUCH ME, LET ME SLEEP >_<"
"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)"
}
\ No newline at end of file
......@@ -58,6 +58,10 @@
"config.diagnostics.unused-vararg": "未使用的不定参数",
"config.diagnostics.workspaceDelay": "进行工作区诊断的延迟(毫秒)。当你启动工作区,或编辑了任意文件后,将会在后台对整个工作区进行重新诊断。设置为负数可以禁用工作区诊断。",
"config.diagnostics.workspaceRate": "工作区诊断的运行速率(百分比)。降低该值会减少CPU占用,但是也会降低工作区诊断的速度。你当前正在编辑的文件的诊断总是全速完成,不受该选项影响。",
"config.hint.arrayIndex": "在构造表时提示数组索引。",
"config.hint.arrayIndex.Auto": "只有表大于3项,或者表是混合类型时才进行提示。",
"config.hint.arrayIndex.Disable": "禁用数组索引提示。",
"config.hint.arrayIndex.Enable": "所有的表中都提示数组索引。",
"config.hint.enable": "启用内联提示。",
"config.hint.paramName": "在函数调用处提示参数名。",
"config.hint.paramName.All": "所有类型的参数均进行提示。",
......@@ -95,6 +99,5 @@
"config.workspace.maxPreload": "最大预加载文件数。",
"config.workspace.preloadFileSize": "预加载时跳过大小大于该值(KB)的文件。",
"config.workspace.useGitIgnore": "忽略 `.gitignore` 中列举的文件。",
"config.workspace.userThirdParty": "在这里添加私有的第三方库适配文件路径,请参考内置的[配置文件路径](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)",
"config.zzzzzz.cat": "DONT TOUCH ME, LET ME SLEEP >_<"
"config.workspace.userThirdParty": "在这里添加私有的第三方库适配文件路径,请参考内置的[配置文件路径](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)"
}
\ No newline at end of file
......@@ -477,6 +477,22 @@ local config = {
},
markdownDescription = '%config.hint.paramName%',
},
["Lua.hint.arrayIndex"] = {
scope = 'resource',
type = "string",
default = "Auto",
enum = {
"Enable",
"Auto",
"Disable",
},
markdownEnumDescriptions = {
"%config.hint.arrayIndex.Enable%",
"%config.hint.arrayIndex.Auto%",
"%config.hint.arrayIndex.Disable%",
},
markdownDescription = "%config.hint.arrayIndex%"
},
['Lua.misc.parameters'] = {
scope = 'resource',
type = "array",
......
......@@ -1145,6 +1145,9 @@
},
"hint": {
"properties": {
"arrayIndex": {
"$ref": "#/properties/hint.arrayIndex"
},
"enable": {
"$ref": "#/properties/hint.enable"
},
......@@ -1159,6 +1162,22 @@
}
}
},
"hint.arrayIndex": {
"default": "Auto",
"enum": [
"Enable",
"Auto",
"Disable"
],
"markdownDescription": "在构造表时提示数组索引。",
"markdownEnumDescriptions": [
"所有的表中都提示数组索引。",
"只有表大于3项,或者表是混合类型时才进行提示。",
"禁用数组索引提示。"
],
"scope": "resource",
"type": "string"
},
"hint.enable": {
"default": false,
"markdownDescription": "启用内联提示。",
......
......@@ -1145,6 +1145,9 @@
},
"hint": {
"properties": {
"arrayIndex": {
"$ref": "#/properties/hint.arrayIndex"
},
"enable": {
"$ref": "#/properties/hint.enable"
},
......@@ -1159,6 +1162,22 @@
}
}
},
"hint.arrayIndex": {
"default": "Auto",
"enum": [
"Enable",
"Auto",
"Disable"
],
"markdownDescription": "Show hints of array index when constructing a table.",
"markdownEnumDescriptions": [
"Show hints in all tables.",
"Show hints only when the table is greater than 3 items, or the table is a mixed table.",
"Disable hints of array index."
],
"scope": "resource",
"type": "string"
},
"hint.enable": {
"default": false,
"markdownDescription": "Enabel hint.",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment