Created
March 30, 2022 01:37
-
-
Save DarcJC/9cb6c33fecc9911601b6645e80ff3cdd to your computer and use it in GitHub Desktop.
1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "Setting of dfm.realsiclua", | |
"properties": { | |
"IntelliSense": { | |
"properties": { | |
"traceBeSetted": { | |
"$ref": "#/properties/IntelliSense.traceBeSetted" | |
}, | |
"traceFieldInject": { | |
"$ref": "#/properties/IntelliSense.traceFieldInject" | |
}, | |
"traceLocalSet": { | |
"$ref": "#/properties/IntelliSense.traceLocalSet" | |
}, | |
"traceReturn": { | |
"$ref": "#/properties/IntelliSense.traceReturn" | |
} | |
} | |
}, | |
"IntelliSense.traceBeSetted": { | |
"default": false, | |
"markdownDescription": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"IntelliSense.traceFieldInject": { | |
"default": false, | |
"markdownDescription": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"IntelliSense.traceLocalSet": { | |
"default": false, | |
"markdownDescription": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"IntelliSense.traceReturn": { | |
"default": false, | |
"markdownDescription": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"completion": { | |
"properties": { | |
"autoRequire": { | |
"$ref": "#/properties/completion.autoRequire" | |
}, | |
"callSnippet": { | |
"$ref": "#/properties/completion.callSnippet" | |
}, | |
"displayContext": { | |
"$ref": "#/properties/completion.displayContext" | |
}, | |
"enable": { | |
"$ref": "#/properties/completion.enable" | |
}, | |
"keywordSnippet": { | |
"$ref": "#/properties/completion.keywordSnippet" | |
}, | |
"postfix": { | |
"$ref": "#/properties/completion.postfix" | |
}, | |
"requireSeparator": { | |
"$ref": "#/properties/completion.requireSeparator" | |
}, | |
"showParams": { | |
"$ref": "#/properties/completion.showParams" | |
}, | |
"showWord": { | |
"$ref": "#/properties/completion.showWord" | |
}, | |
"workspaceWord": { | |
"$ref": "#/properties/completion.workspaceWord" | |
} | |
} | |
}, | |
"completion.autoRequire": { | |
"default": true, | |
"markdownDescription": "输入内容看起来是个文件名时,自动 `require` 此文件。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"completion.callSnippet": { | |
"default": "Disable", | |
"enum": [ | |
"Disable", | |
"Both", | |
"Replace" | |
], | |
"markdownDescription": "显示函数调用片段。", | |
"markdownEnumDescriptions": [ | |
"只显示 `函数名`。", | |
"显示 `函数名` 与 `调用片段`。", | |
"只显示 `调用片段`。" | |
], | |
"scope": "resource", | |
"type": "string" | |
}, | |
"completion.displayContext": { | |
"default": 0, | |
"markdownDescription": "预览建议的相关代码片段,可能可以帮助你了解这项建议的用法。设置的数字表示代码片段的截取行数,设置为`0`可以禁用此功能。", | |
"scope": "resource", | |
"type": "integer" | |
}, | |
"completion.enable": { | |
"default": true, | |
"markdownDescription": "启用自动完成。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"completion.keywordSnippet": { | |
"default": "Replace", | |
"enum": [ | |
"Disable", | |
"Both", | |
"Replace" | |
], | |
"markdownDescription": "显示关键字语法片段", | |
"markdownEnumDescriptions": [ | |
"只显示 `关键字`。", | |
"显示 `关键字` 与 `语法片段`。", | |
"只显示 `语法片段`。" | |
], | |
"scope": "resource", | |
"type": "string" | |
}, | |
"completion.postfix": { | |
"default": "@", | |
"markdownDescription": "用于触发后缀建议的符号。", | |
"scope": "resource", | |
"type": "string" | |
}, | |
"completion.requireSeparator": { | |
"default": ".", | |
"markdownDescription": "`require` 时使用的分隔符。", | |
"scope": "resource", | |
"type": "string" | |
}, | |
"completion.showParams": { | |
"default": true, | |
"markdownDescription": "在建议列表中显示函数的参数信息,函数拥有多个定义时会分开显示。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"completion.showWord": { | |
"default": "Fallback", | |
"enum": [ | |
"Enable", | |
"Fallback", | |
"Disable" | |
], | |
"markdownDescription": "在建议中显示上下文单词。", | |
"markdownEnumDescriptions": [ | |
"总是在建议中显示上下文单词。", | |
"无法根据语义提供建议时才显示上下文单词。", | |
"不显示上下文单词。" | |
], | |
"scope": "resource", | |
"type": "string" | |
}, | |
"completion.workspaceWord": { | |
"default": true, | |
"markdownDescription": "显示的上下文单词是否包含工作区中其他文件的内容。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"diagnostics": { | |
"properties": { | |
"disable": { | |
"$ref": "#/properties/diagnostics.disable" | |
}, | |
"enable": { | |
"$ref": "#/properties/diagnostics.enable" | |
}, | |
"globals": { | |
"$ref": "#/properties/diagnostics.globals" | |
}, | |
"ignoredFiles": { | |
"$ref": "#/properties/diagnostics.ignoredFiles" | |
}, | |
"libraryFiles": { | |
"$ref": "#/properties/diagnostics.libraryFiles" | |
}, | |
"neededFileStatus": { | |
"$ref": "#/properties/diagnostics.neededFileStatus" | |
}, | |
"severity": { | |
"$ref": "#/properties/diagnostics.severity" | |
}, | |
"workspaceDelay": { | |
"$ref": "#/properties/diagnostics.workspaceDelay" | |
}, | |
"workspaceRate": { | |
"$ref": "#/properties/diagnostics.workspaceRate" | |
} | |
} | |
}, | |
"diagnostics.disable": { | |
"items": { | |
"type": "string" | |
}, | |
"markdownDescription": "禁用的诊断(使用浮框括号内的代码)。", | |
"scope": "resource", | |
"type": "array" | |
}, | |
"diagnostics.enable": { | |
"default": true, | |
"markdownDescription": "启用诊断。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"diagnostics.globals": { | |
"items": { | |
"type": "string" | |
}, | |
"markdownDescription": "已定义的全局变量。", | |
"scope": "resource", | |
"type": "array" | |
}, | |
"diagnostics.ignoredFiles": { | |
"default": "Opened", | |
"enum": [ | |
"Enable", | |
"Opened", | |
"Disable" | |
], | |
"markdownDescription": "如何诊断被忽略的文件。", | |
"markdownEnumDescriptions": [ | |
"总是诊断这些文件。", | |
"只有打开这些文件时才会诊断。", | |
"不诊断这些文件。" | |
], | |
"scope": "resource", | |
"type": "string" | |
}, | |
"diagnostics.libraryFiles": { | |
"default": "Opened", | |
"enum": [ | |
"Enable", | |
"Opened", | |
"Disable" | |
], | |
"markdownDescription": "如何诊断通过 `Lua.workspace.library` 加载的文件。", | |
"markdownEnumDescriptions": [ | |
"总是诊断这些文件。", | |
"只有打开这些文件时才会诊断。", | |
"不诊断这些文件。" | |
], | |
"scope": "resource", | |
"type": "string" | |
}, | |
"diagnostics.neededFileStatus": { | |
"additionalProperties": false, | |
"markdownDescription": "* Opened: 只诊断打开的文件\n* Any: 诊断任何文件\n* Disable: 禁用此诊断\n", | |
"properties": { | |
"ambiguity-1": { | |
"default": "Any", | |
"description": "优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"await-in-sync": { | |
"default": "None", | |
"description": "%config.diagnostics.await-in-sync%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"circle-doc-class": { | |
"default": "Any", | |
"description": "%config.diagnostics.circle-doc-class%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"close-non-object": { | |
"default": "Any", | |
"description": "%config.diagnostics.close-non-object%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"code-after-break": { | |
"default": "Opened", | |
"description": "%config.diagnostics.code-after-break%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"codestyle-check": { | |
"default": "None", | |
"description": "%config.diagnostics.codestyle-check%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"count-down-loop": { | |
"default": "Any", | |
"description": "%config.diagnostics.count-down-loop%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"deprecated": { | |
"default": "Opened", | |
"description": "%config.diagnostics.deprecated%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"different-requires": { | |
"default": "Any", | |
"description": "%config.diagnostics.different-requires%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"discard-returns": { | |
"default": "Opened", | |
"description": "%config.diagnostics.discard-returns%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"doc-field-no-class": { | |
"default": "Any", | |
"description": "%config.diagnostics.doc-field-no-class%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"duplicate-doc-class": { | |
"default": "Any", | |
"description": "%config.diagnostics.duplicate-doc-class%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"duplicate-doc-field": { | |
"default": "Any", | |
"description": "%config.diagnostics.duplicate-doc-field%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"duplicate-doc-param": { | |
"default": "Any", | |
"description": "%config.diagnostics.duplicate-doc-param%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"duplicate-index": { | |
"default": "Any", | |
"description": "在字面量表中重复定义了索引", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"duplicate-set-field": { | |
"default": "Any", | |
"description": "%config.diagnostics.duplicate-set-field%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"empty-block": { | |
"default": "Opened", | |
"description": "空代码块", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"global-in-nil-env": { | |
"default": "Any", | |
"description": "不能使用全局变量( `_ENV` 被设置为了 `nil`)", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"lowercase-global": { | |
"default": "Any", | |
"description": "首字母小写的全局变量定义", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"newfield-call": { | |
"default": "Any", | |
"description": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"newline-call": { | |
"default": "Any", | |
"description": "以 `(` 开始的新行,在语法上被解析为了上一行的函数调用", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"no-implicit-any": { | |
"default": "None", | |
"description": "%config.diagnostics.no-implicit-any%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"not-yieldable": { | |
"default": "None", | |
"description": "%config.diagnostics.not-yieldable%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"redefined-local": { | |
"default": "Opened", | |
"description": "重复定义的局部变量", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"redundant-parameter": { | |
"default": "Opened", | |
"description": "函数调用时,传入了多余的参数", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"redundant-return": { | |
"default": "Opened", | |
"description": "%config.diagnostics.redundant-return%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"redundant-value": { | |
"default": "Opened", | |
"description": "赋值操作时,值的数量比被赋值的对象多", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"trailing-space": { | |
"default": "Opened", | |
"description": "后置空格", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"type-check": { | |
"default": "None", | |
"description": "%config.diagnostics.type-check%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"unbalanced-assignments": { | |
"default": "Any", | |
"description": "%config.diagnostics.unbalanced-assignments%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"undefined-doc-class": { | |
"default": "Any", | |
"description": "%config.diagnostics.undefined-doc-class%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"undefined-doc-name": { | |
"default": "Any", | |
"description": "%config.diagnostics.undefined-doc-name%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"undefined-doc-param": { | |
"default": "Any", | |
"description": "%config.diagnostics.undefined-doc-param%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"undefined-env-child": { | |
"default": "Any", | |
"description": "`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"undefined-field": { | |
"default": "Opened", | |
"description": "%config.diagnostics.undefined-field%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"undefined-global": { | |
"default": "Any", | |
"description": "未定义的全局变量", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"unknown-diag-code": { | |
"default": "Any", | |
"description": "%config.diagnostics.unknown-diag-code%", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"unused-function": { | |
"default": "Opened", | |
"description": "未使用的函数", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"unused-label": { | |
"default": "Opened", | |
"description": "未使用的标签", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"unused-local": { | |
"default": "Opened", | |
"description": "未使用的局部变量", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
}, | |
"unused-vararg": { | |
"default": "Opened", | |
"description": "未使用的不定参数", | |
"enum": [ | |
"Any", | |
"Opened", | |
"None" | |
], | |
"type": "string" | |
} | |
}, | |
"scope": "resource", | |
"title": "neededFileStatus", | |
"type": "object" | |
}, | |
"diagnostics.severity": { | |
"additionalProperties": false, | |
"markdownDescription": "修改诊断等级。", | |
"properties": { | |
"ambiguity-1": { | |
"default": "Warning", | |
"description": "优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"await-in-sync": { | |
"default": "Warning", | |
"description": "%config.diagnostics.await-in-sync%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"circle-doc-class": { | |
"default": "Warning", | |
"description": "%config.diagnostics.circle-doc-class%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"close-non-object": { | |
"default": "Warning", | |
"description": "%config.diagnostics.close-non-object%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"code-after-break": { | |
"default": "Hint", | |
"description": "%config.diagnostics.code-after-break%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"codestyle-check": { | |
"default": "Warning", | |
"description": "%config.diagnostics.codestyle-check%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"count-down-loop": { | |
"default": "Warning", | |
"description": "%config.diagnostics.count-down-loop%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"deprecated": { | |
"default": "Warning", | |
"description": "%config.diagnostics.deprecated%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"different-requires": { | |
"default": "Warning", | |
"description": "%config.diagnostics.different-requires%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"discard-returns": { | |
"default": "Warning", | |
"description": "%config.diagnostics.discard-returns%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"doc-field-no-class": { | |
"default": "Warning", | |
"description": "%config.diagnostics.doc-field-no-class%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"duplicate-doc-class": { | |
"default": "Warning", | |
"description": "%config.diagnostics.duplicate-doc-class%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"duplicate-doc-field": { | |
"default": "Warning", | |
"description": "%config.diagnostics.duplicate-doc-field%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"duplicate-doc-param": { | |
"default": "Warning", | |
"description": "%config.diagnostics.duplicate-doc-param%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"duplicate-index": { | |
"default": "Warning", | |
"description": "在字面量表中重复定义了索引", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"duplicate-set-field": { | |
"default": "Warning", | |
"description": "%config.diagnostics.duplicate-set-field%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"empty-block": { | |
"default": "Hint", | |
"description": "空代码块", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"global-in-nil-env": { | |
"default": "Warning", | |
"description": "不能使用全局变量( `_ENV` 被设置为了 `nil`)", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"lowercase-global": { | |
"default": "Information", | |
"description": "首字母小写的全局变量定义", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"newfield-call": { | |
"default": "Warning", | |
"description": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"newline-call": { | |
"default": "Information", | |
"description": "以 `(` 开始的新行,在语法上被解析为了上一行的函数调用", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"no-implicit-any": { | |
"default": "Information", | |
"description": "%config.diagnostics.no-implicit-any%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"not-yieldable": { | |
"default": "Warning", | |
"description": "%config.diagnostics.not-yieldable%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"redefined-local": { | |
"default": "Hint", | |
"description": "重复定义的局部变量", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"redundant-parameter": { | |
"default": "Warning", | |
"description": "函数调用时,传入了多余的参数", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"redundant-return": { | |
"default": "Warning", | |
"description": "%config.diagnostics.redundant-return%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"redundant-value": { | |
"default": "Warning", | |
"description": "赋值操作时,值的数量比被赋值的对象多", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"trailing-space": { | |
"default": "Hint", | |
"description": "后置空格", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"type-check": { | |
"default": "Warning", | |
"description": "%config.diagnostics.type-check%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"unbalanced-assignments": { | |
"default": "Warning", | |
"description": "%config.diagnostics.unbalanced-assignments%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"undefined-doc-class": { | |
"default": "Warning", | |
"description": "%config.diagnostics.undefined-doc-class%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"undefined-doc-name": { | |
"default": "Warning", | |
"description": "%config.diagnostics.undefined-doc-name%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"undefined-doc-param": { | |
"default": "Warning", | |
"description": "%config.diagnostics.undefined-doc-param%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"undefined-env-child": { | |
"default": "Information", | |
"description": "`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"undefined-field": { | |
"default": "Warning", | |
"description": "%config.diagnostics.undefined-field%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"undefined-global": { | |
"default": "Warning", | |
"description": "未定义的全局变量", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"unknown-diag-code": { | |
"default": "Warning", | |
"description": "%config.diagnostics.unknown-diag-code%", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"unused-function": { | |
"default": "Hint", | |
"description": "未使用的函数", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"unused-label": { | |
"default": "Hint", | |
"description": "未使用的标签", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"unused-local": { | |
"default": "Hint", | |
"description": "未使用的局部变量", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
}, | |
"unused-vararg": { | |
"default": "Hint", | |
"description": "未使用的不定参数", | |
"enum": [ | |
"Error", | |
"Warning", | |
"Information", | |
"Hint" | |
], | |
"type": "string" | |
} | |
}, | |
"scope": "resource", | |
"title": "severity", | |
"type": "object" | |
}, | |
"diagnostics.workspaceDelay": { | |
"default": 3000, | |
"markdownDescription": "进行工作区诊断的延迟(毫秒)。当你启动工作区,或编辑了任意文件后,将会在后台对整个工作区进行重新诊断。设置为负数可以禁用工作区诊断。", | |
"scope": "resource", | |
"type": "integer" | |
}, | |
"diagnostics.workspaceRate": { | |
"default": 100, | |
"markdownDescription": "工作区诊断的运行速率(百分比)。降低该值会减少CPU占用,但是也会降低工作区诊断的速度。你当前正在编辑的文件的诊断总是全速完成,不受该选项影响。", | |
"scope": "resource", | |
"type": "integer" | |
}, | |
"format": { | |
"properties": { | |
"defaultConfig": { | |
"$ref": "#/properties/format.defaultConfig" | |
}, | |
"enable": { | |
"$ref": "#/properties/format.enable" | |
} | |
} | |
}, | |
"format.defaultConfig": { | |
"markdownDescription": "%config.format.defaultConfig%", | |
"scope": "resource", | |
"type": "object" | |
}, | |
"format.enable": { | |
"default": "true", | |
"markdownDescription": "启用代码格式化程序。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"hint": { | |
"properties": { | |
"arrayIndex": { | |
"$ref": "#/properties/hint.arrayIndex" | |
}, | |
"enable": { | |
"$ref": "#/properties/hint.enable" | |
}, | |
"paramName": { | |
"$ref": "#/properties/hint.paramName" | |
}, | |
"paramType": { | |
"$ref": "#/properties/hint.paramType" | |
}, | |
"setType": { | |
"$ref": "#/properties/hint.setType" | |
} | |
} | |
}, | |
"hint.arrayIndex": { | |
"default": "Auto", | |
"enum": [ | |
"Enable", | |
"Auto", | |
"Disable" | |
], | |
"markdownDescription": "在构造表时提示数组索引。", | |
"markdownEnumDescriptions": [ | |
"所有的表中都提示数组索引。", | |
"只有表大于3项,或者表是混合类型时才进行提示。", | |
"禁用数组索引提示。" | |
], | |
"scope": "resource", | |
"type": "string" | |
}, | |
"hint.enable": { | |
"default": false, | |
"markdownDescription": "启用内联提示。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"hint.paramName": { | |
"default": "All", | |
"enum": [ | |
"All", | |
"Literal", | |
"Disable" | |
], | |
"markdownDescription": "在函数调用处提示参数名。", | |
"markdownEnumDescriptions": [ | |
"所有类型的参数均进行提示。", | |
"只有字面量类型的参数进行提示。", | |
"禁用参数提示。" | |
], | |
"scope": "resource", | |
"type": "string" | |
}, | |
"hint.paramType": { | |
"default": true, | |
"markdownDescription": "在函数的参数位置提示类型。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"hint.setType": { | |
"default": false, | |
"markdownDescription": "在赋值操作位置提示类型。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"hover": { | |
"properties": { | |
"enable": { | |
"$ref": "#/properties/hover.enable" | |
}, | |
"enumsLimit": { | |
"$ref": "#/properties/hover.enumsLimit" | |
}, | |
"previewFields": { | |
"$ref": "#/properties/hover.previewFields" | |
}, | |
"viewNumber": { | |
"$ref": "#/properties/hover.viewNumber" | |
}, | |
"viewString": { | |
"$ref": "#/properties/hover.viewString" | |
}, | |
"viewStringMax": { | |
"$ref": "#/properties/hover.viewStringMax" | |
} | |
} | |
}, | |
"hover.enable": { | |
"default": true, | |
"markdownDescription": "启用悬停提示。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"hover.enumsLimit": { | |
"default": 5, | |
"markdownDescription": "当值对应多个类型时,限制类型的显示数量。", | |
"scope": "resource", | |
"type": "integer" | |
}, | |
"hover.previewFields": { | |
"default": 20, | |
"markdownDescription": "悬停提示查看表时,限制表内字段的最大预览数量。", | |
"scope": "resource", | |
"type": "integer" | |
}, | |
"hover.viewNumber": { | |
"default": true, | |
"markdownDescription": "悬停提示查看数字内容(仅当字面量不是十进制时)。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"hover.viewString": { | |
"default": true, | |
"markdownDescription": "悬停提示查看字符串内容(仅当字面量包含转义符时)。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"hover.viewStringMax": { | |
"default": 1000, | |
"markdownDescription": "悬停提示查看字符串内容时的最大长度。", | |
"scope": "resource", | |
"type": "integer" | |
}, | |
"misc": { | |
"properties": { | |
"parameters": { | |
"$ref": "#/properties/misc.parameters" | |
} | |
} | |
}, | |
"misc.parameters": { | |
"items": { | |
"type": "string" | |
}, | |
"markdownDescription": "VSCode中启动语言服务时的[命令行参数](https://github.com/sumneko/lua-language-server/wiki/Command-line)。", | |
"scope": "resource", | |
"type": "array" | |
}, | |
"runtime": { | |
"properties": { | |
"builtin": { | |
"$ref": "#/properties/runtime.builtin" | |
}, | |
"fileEncoding": { | |
"$ref": "#/properties/runtime.fileEncoding" | |
}, | |
"nonstandardSymbol": { | |
"$ref": "#/properties/runtime.nonstandardSymbol" | |
}, | |
"path": { | |
"$ref": "#/properties/runtime.path" | |
}, | |
"pathStrict": { | |
"$ref": "#/properties/runtime.pathStrict" | |
}, | |
"plugin": { | |
"$ref": "#/properties/runtime.plugin" | |
}, | |
"special": { | |
"$ref": "#/properties/runtime.special" | |
}, | |
"unicodeName": { | |
"$ref": "#/properties/runtime.unicodeName" | |
}, | |
"version": { | |
"$ref": "#/properties/runtime.version" | |
} | |
} | |
}, | |
"runtime.builtin": { | |
"additionalProperties": false, | |
"markdownDescription": "调整内置库的启用状态,你可以根据实际运行环境禁用掉不存在的库(或重新定义)。\n\n* `default`: 表示库会根据运行版本启用或禁用\n* `enable`: 总是启用\n* `disable`: 总是禁用\n", | |
"properties": { | |
"basic": { | |
"default": "default", | |
"description": "%config.runtime.builtin.basic%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"bit": { | |
"default": "default", | |
"description": "%config.runtime.builtin.bit%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"bit32": { | |
"default": "default", | |
"description": "%config.runtime.builtin.bit32%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"builtin": { | |
"default": "default", | |
"description": "%config.runtime.builtin.builtin%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"coroutine": { | |
"default": "default", | |
"description": "%config.runtime.builtin.coroutine%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"debug": { | |
"default": "default", | |
"description": "%config.runtime.builtin.debug%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"ffi": { | |
"default": "default", | |
"description": "%config.runtime.builtin.ffi%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"io": { | |
"default": "default", | |
"description": "%config.runtime.builtin.io%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"jit": { | |
"default": "default", | |
"description": "%config.runtime.builtin.jit%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"math": { | |
"default": "default", | |
"description": "%config.runtime.builtin.math%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"os": { | |
"default": "default", | |
"description": "%config.runtime.builtin.os%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"package": { | |
"default": "default", | |
"description": "%config.runtime.builtin.package%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"string": { | |
"default": "default", | |
"description": "%config.runtime.builtin.string%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"table": { | |
"default": "default", | |
"description": "%config.runtime.builtin.table%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
}, | |
"utf8": { | |
"default": "default", | |
"description": "%config.runtime.builtin.utf8%", | |
"enum": [ | |
"default", | |
"enable", | |
"disable" | |
], | |
"type": "string" | |
} | |
}, | |
"scope": "resource", | |
"type": "object" | |
}, | |
"runtime.fileEncoding": { | |
"default": "utf8", | |
"enum": [ | |
"utf8", | |
"ansi", | |
"utf16le", | |
"utf16be" | |
], | |
"markdownDescription": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。", | |
"scope": "resource", | |
"type": "string" | |
}, | |
"runtime.nonstandardSymbol": { | |
"items": { | |
"enum": [ | |
"//", | |
"/**/", | |
"`", | |
"+=", | |
"-=", | |
"*=", | |
"/=", | |
"||", | |
"&&", | |
"!", | |
"!=", | |
"continue" | |
], | |
"type": "string" | |
}, | |
"markdownDescription": "支持非标准的符号。请务必确认你的运行环境支持这些符号。", | |
"scope": "resource", | |
"type": "array" | |
}, | |
"runtime.path": { | |
"default": [ | |
"?.lua", | |
"?/init.lua" | |
], | |
"items": { | |
"type": "string" | |
}, | |
"markdownDescription": "当使用 `require` 时,如何根据输入的名字来查找文件。\n此选项设置为 `?/init.lua` 意味着当你输入 `require 'myfile'` 时,会从已加载的文件中搜索 `{workspace}/myfile/init.lua`。\n当 `runtime.pathStrict` 设置为 `false` 时,还会尝试搜索 `${workspace}/**/myfile/init.lua`。\n如果你想要加载工作区以外的文件,你需要先设置 `Lua.workspace.library`。\n", | |
"scope": "resource", | |
"type": "array" | |
}, | |
"runtime.pathStrict": { | |
"default": false, | |
"markdownDescription": "启用后 `runtime.path` 将只搜索第一层目录,见 `runtime.path` 的说明。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"runtime.plugin": { | |
"default": "", | |
"markdownDescription": "插件路径,请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/Plugin)了解用法。", | |
"scope": "resource", | |
"type": "string" | |
}, | |
"runtime.special": { | |
"additionalProperties": false, | |
"markdownDescription": "将自定义全局变量视为一些特殊的内置变量,语言服务将提供特殊的支持。\n下面这个例子表示将 `include` 视为 `require` 。\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n", | |
"patternProperties": { | |
".*": { | |
"default": "require", | |
"enum": [ | |
"_G", | |
"rawset", | |
"rawget", | |
"setmetatable", | |
"require", | |
"dofile", | |
"loadfile", | |
"pcall", | |
"xpcall" | |
], | |
"type": "string" | |
} | |
}, | |
"scope": "resource", | |
"type": "object" | |
}, | |
"runtime.unicodeName": { | |
"default": false, | |
"markdownDescription": "允许在名字中使用 Unicode 字符。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"runtime.version": { | |
"default": "Lua 5.4", | |
"enum": [ | |
"Lua 5.1", | |
"Lua 5.2", | |
"Lua 5.3", | |
"Lua 5.4", | |
"LuaJIT" | |
], | |
"markdownDescription": "Lua运行版本。", | |
"scope": "resource", | |
"type": "string" | |
}, | |
"semantic": { | |
"properties": { | |
"annotation": { | |
"$ref": "#/properties/semantic.annotation" | |
}, | |
"enable": { | |
"$ref": "#/properties/semantic.enable" | |
}, | |
"keyword": { | |
"$ref": "#/properties/semantic.keyword" | |
}, | |
"variable": { | |
"$ref": "#/properties/semantic.variable" | |
} | |
} | |
}, | |
"semantic.annotation": { | |
"default": true, | |
"markdownDescription": "对类型注解进行语义着色。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"semantic.enable": { | |
"default": true, | |
"markdownDescription": "启用语义着色。你可能需要同时将 `editor.semanticHighlighting.enabled` 设置为 `true` 才能生效。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"semantic.keyword": { | |
"default": false, | |
"markdownDescription": "对关键字/字面量/运算符进行语义着色。只有当你的编辑器无法进行语法着色时才需要启用此功能。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"semantic.variable": { | |
"default": true, | |
"markdownDescription": "对变量/字段/参数进行语义着色。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"signatureHelp": { | |
"properties": { | |
"enable": { | |
"$ref": "#/properties/signatureHelp.enable" | |
} | |
} | |
}, | |
"signatureHelp.enable": { | |
"default": true, | |
"markdownDescription": "启用参数提示。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"telemetry": { | |
"properties": { | |
"enable": { | |
"$ref": "#/properties/telemetry.enable" | |
} | |
} | |
}, | |
"telemetry.enable": { | |
"default": null, | |
"markdownDescription": "启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。\n", | |
"scope": "resource", | |
"tags": [ | |
"telemetry" | |
], | |
"type": [ | |
"boolean", | |
"null" | |
] | |
}, | |
"window": { | |
"properties": { | |
"progressBar": { | |
"$ref": "#/properties/window.progressBar" | |
}, | |
"statusBar": { | |
"$ref": "#/properties/window.statusBar" | |
} | |
} | |
}, | |
"window.progressBar": { | |
"default": true, | |
"markdownDescription": "在状态栏显示进度条。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"window.statusBar": { | |
"default": true, | |
"markdownDescription": "在状态栏显示插件状态。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"workspace": { | |
"properties": { | |
"checkThirdParty": { | |
"$ref": "#/properties/workspace.checkThirdParty" | |
}, | |
"ignoreDir": { | |
"$ref": "#/properties/workspace.ignoreDir" | |
}, | |
"ignoreSubmodules": { | |
"$ref": "#/properties/workspace.ignoreSubmodules" | |
}, | |
"library": { | |
"$ref": "#/properties/workspace.library" | |
}, | |
"maxPreload": { | |
"$ref": "#/properties/workspace.maxPreload" | |
}, | |
"preloadFileSize": { | |
"$ref": "#/properties/workspace.preloadFileSize" | |
}, | |
"useGitIgnore": { | |
"$ref": "#/properties/workspace.useGitIgnore" | |
}, | |
"userThirdParty": { | |
"$ref": "#/properties/workspace.userThirdParty" | |
} | |
} | |
}, | |
"workspace.checkThirdParty": { | |
"default": true, | |
"markdownDescription": "自动检测与适配第三方库,目前支持的库为:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"workspace.ignoreDir": { | |
"default": [ | |
".vscode" | |
], | |
"items": { | |
"type": "string" | |
}, | |
"markdownDescription": "忽略的文件与目录(使用 `.gitignore` 语法)。", | |
"scope": "resource", | |
"type": "array" | |
}, | |
"workspace.ignoreSubmodules": { | |
"default": true, | |
"markdownDescription": "忽略子模块。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"workspace.library": { | |
"items": { | |
"type": "string" | |
}, | |
"markdownDescription": "除了当前工作区以外,还会从哪些目录中加载文件。这些目录中的文件将被视作外部提供的代码库,部分操作(如重命名字段)不会修改这些文件。", | |
"scope": "resource", | |
"type": "array" | |
}, | |
"workspace.maxPreload": { | |
"default": 5000, | |
"markdownDescription": "最大预加载文件数。", | |
"scope": "resource", | |
"type": "integer" | |
}, | |
"workspace.preloadFileSize": { | |
"default": 500, | |
"markdownDescription": "预加载时跳过大小大于该值(KB)的文件。", | |
"scope": "resource", | |
"type": "integer" | |
}, | |
"workspace.useGitIgnore": { | |
"default": true, | |
"markdownDescription": "忽略 `.gitignore` 中列举的文件。", | |
"scope": "resource", | |
"type": "boolean" | |
}, | |
"workspace.userThirdParty": { | |
"items": { | |
"type": "string" | |
}, | |
"markdownDescription": "在这里添加私有的第三方库适配文件路径,请参考内置的[配置文件路径](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)", | |
"scope": "resource", | |
"type": "array" | |
} | |
}, | |
"title": "setting", | |
"type": "object" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment