diff options
author | Gowa2017 <33367355+Gowa2017@users.noreply.github.com> | 2022-01-09 22:38:54 +0800 |
---|---|---|
committer | Gowa2017 <33367355+Gowa2017@users.noreply.github.com> | 2022-01-09 22:38:54 +0800 |
commit | becf15eaddea4ec2549a64251e0bcb428d4ff73b (patch) | |
tree | 84ab27774fd2d2cf7daa49a8fe38ae0f85c3fde4 /locale | |
parent | e4df77fe5b62db987ce80ea04038880d8e760d59 (diff) | |
parent | 4f04a448ac995854274737d39f5b96771116a5a0 (diff) | |
download | lua-language-server-becf15eaddea4ec2549a64251e0bcb428d4ff73b.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'locale')
-rw-r--r-- | locale/en-us/meta.lua | 2 | ||||
-rw-r--r-- | locale/en-us/script.lua | 8 | ||||
-rw-r--r-- | locale/en-us/setting.lua | 119 | ||||
-rw-r--r-- | locale/pt-br/meta.lua | 2 | ||||
-rw-r--r-- | locale/pt-br/script.lua | 8 | ||||
-rw-r--r-- | locale/zh-cn/meta.lua | 2 | ||||
-rw-r--r-- | locale/zh-cn/script.lua | 8 | ||||
-rw-r--r-- | locale/zh-cn/setting.lua | 138 |
8 files changed, 272 insertions, 15 deletions
diff --git a/locale/en-us/meta.lua b/locale/en-us/meta.lua index acbb510c..739781ca 100644 --- a/locale/en-us/meta.lua +++ b/locale/en-us/meta.lua @@ -1,3 +1,5 @@ +---@diagnostic disable: undefined-global, lowercase-global + -- basic arg = 'Command-line arguments of Lua Standalone.' assert = 'Raises an error if the value of its argument v is false (i.e., `nil` or `false`); otherwise, returns all its arguments. In case of error, `message` is the error object; when absent, it defaults to `"assertion failed!"`' diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index a03aec0a..bb77b308 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -233,11 +233,9 @@ WINDOW_SETTING_WS_DIAGNOSTIC = 'You can delay or disable workspace diagnosti WINDOW_DONT_SHOW_AGAIN = "Don't show again" WINDOW_DELAY_WS_DIAGNOSTIC = 'Idle time diagnosis (delay {} seconds)' WINDOW_DISABLE_DIAGNOSTIC = 'Disable workspace diagnostics' -WINDOW_LUA_STATUS = [[ -Workspace : {ws} -Cached files: {ast}/{max} -Memory usage: {mem:.f}M -]] +WINDOW_LUA_STATUS_WORKSPACE = 'Workspace : {}' +WINDOW_LUA_STATUS_CACHED_FILES = 'Cached files: {ast}/{max}' +WINDOW_LUA_STATUS_MEMORY_COUNT = 'Memory usage: {mem:.f}M' WINDOW_APPLY_SETTING = 'Apply setting' WINDOW_CHECK_SEMANTIC = 'If you are using the color theme in the market, you may need to modify `editor.semanticHighlighting.enabled` to `true` to make semantic tokens take effect.' WINDOW_TELEMETRY_HINT = 'Please allow sending anonymous usage data and error reports to help us further improve this extension. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy) .' diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua new file mode 100644 index 00000000..30afe9c8 --- /dev/null +++ b/locale/en-us/setting.lua @@ -0,0 +1,119 @@ +---@diagnostic disable: undefined-global + +config.runtime.version = "Lua runtime version." +config.runtime.path = [[ +When using `require`, how to find the file based on the input name. +Setting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files. +if `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched. +If you want to load files outside the workspace, you need to set `Lua.workspace.library` first. +]] +config.runtime.pathStrict = 'When enabled, `runtime.path` will only search the first level of directories, see the description of `runtime.path`.' +config.runtime.special = [[The custom global variables are regarded as some special built-in variables, and the language server will provide special support +The following example shows that 'include' is treated as' require '. +```json +"Lua.runtime.special" : { + "include" : "require" +} +``` +]] +config.runtime.unicodeName = "Allows Unicode characters in name." +config.runtime.nonstandardSymbol = "Supports non-standard symbols. Make sure that your runtime environment supports these symbols." +config.runtime.plugin = "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more." +config.runtime.fileEncoding = "File encoding. The `ansi` option is only available under the `Windows` platform." +config.runtime.builtin = [[ +Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment. + +* `default`: Indicates that the library will be enabled or disabled according to the runtime version +* `enable`: always enable +* `disable`: always disable +]] +config.diagnostics.enable = "Enable diagnostics." +config.diagnostics.disable = "Disabled diagnostic (Use code in hover brackets)." +config.diagnostics.globals = "Defined global variables." +config.diagnostics.severity = "Modified diagnostic severity." +config.diagnostics.neededFileStatus = [[ +* Opened: only diagnose opened files +* Any: diagnose all files +* Disable: disable this diagnostic +]] +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.diagnostics.libraryFiles = "How to diagnose files loaded via `Lua.workspace.library`." +config.diagnostics.ignoredFiles = "How to diagnose ignored files." +config.diagnostics.files.Enable = "Always diagnose these files." +config.diagnostics.files.Opened = "Only when these files are opened will it be diagnosed." +config.diagnostics.files.Disable = "These files are not diagnosed." +config.workspace.ignoreDir = "Ignored files and directories (Use `.gitignore` grammar)."-- .. example.ignoreDir, +config.workspace.ignoreSubmodules = "Ignore submodules." +config.workspace.useGitIgnore = "Ignore files list in `.gitignore` ." +config.workspace.maxPreload = "Max preloaded files." +config.workspace.preloadFileSize = "Skip files larger than this value (KB) when preloading." +config.workspace.library = "In addition to the current workspace, which directories will load files from. The files in these directories will be treated as externally provided code libraries, and some features (such as renaming fields) will not modify these files." +config.workspace.checkThirdParty = [[ +Automatic detection and adaptation of third-party libraries, currently supported libraries are: + +* OpenResty +* Cocos4.0 +* LÖVE +* LÖVR +* skynet +* Jass +]] +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.completion.enable = 'Enable completion.' +config.completion.callSnippet = 'Shows function call snippets.' +config.completion.callSnippet.Disable = "Only shows `function name`." +config.completion.callSnippet.Both = "Shows `function name` and `call snippet`." +config.completion.callSnippet.Replace = "Only shows `call snippet.`" +config.completion.keywordSnippet = 'Shows keyword syntax snippets.' +config.completion.keywordSnippet.Disable = "Only shows `keyword`." +config.completion.keywordSnippet.Both = "Shows `keyword` and `syntax snippet`." +config.completion.keywordSnippet.Replace = "Only shows `syntax snippet`." +config.completion.displayContext = "Previewing the relevant code snippet of the suggestion may help you understand the usage of the suggestion. The number set indicates the number of intercepted lines in the code fragment. If it is set to `0`, this feature can be disabled." +config.completion.workspaceWord = "Whether the displayed context word contains the content of other files in the workspace." +config.completion.showWord = "Show contextual words in suggestions." +config.completion.showWord.Enable = "Always show context words in suggestions." +config.completion.showWord.Fallback = "Contextual words are only displayed when suggestions based on semantics cannot be provided." +config.completion.showWord.Disable = "Do not display context words." +config.completion.autoRequire = "When the input looks like a file name, automatically `require` this file." +config.completion.showParams = "Display parameters in completion list. When the function has multiple definitions, they will be displayed separately." +config.completion.requireSeparator = "The separator used when `require`." +config.completion.postfix = "The symbol used to trigger the postfix suggestion." +config.color.mode = "Color mode." +config.color.mode.Semantic = "Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect." +config.color.mode.SemanticEnhanced = "Enhanced semantic color. Like `Semantic`, but with additional analysis which might be more computationally expensive." +config.color.mode.Grammar = "Grammar color." +config.signatureHelp.enable = "Enable signature help." +config.hover.enable = "Enable hover." +config.hover.viewString = "Hover to view the contents of a string (only if the literal contains an escape character)." +config.hover.viewStringMax = "The maximum length of a hover to view the contents of a string." +config.hover.viewNumber = "Hover to view numeric content (only if literal is not decimal)." +config.hover.fieldInfer = "When hovering to view a table, type infer will be performed for each field. When the accumulated time of type infer reaches the set value (MS), the type infer of subsequent fields will be skipped." +config.hover.previewFields = "When hovering to view a table, limits the maximum number of previews for fields." +config.hover.enumsLimit = "When the value corresponds to multiple types, limit the number of types displaying." +config.develop.enable = 'Developer mode. Do not enable, performance will be affected.' +config.develop.debuggerPort = 'Listen port of debugger.' +config.develop.debuggerWait = 'Suspend before debugger connects.' +config.intelliSense.searchDepth = 'Set the search depth for IntelliSense. Increasing this value increases accuracy, but decreases performance. Different workspace have different tolerance for this setting. Please adjust it to the appropriate value.' +config.intelliSense.fastGlobal = 'In the global variable completion, and view `_G` suspension prompt. This will slightly reduce the accuracy of type speculation, but it will have a significant performance improvement for projects that use a lot of global variables.' +config.window.statusBar = 'Show extension status in status bar.' +config.window.progressBar = 'Show progress bar in status bar.' +config.hint.enable = 'Enabel hint.' +config.hint.paramType = 'Show type hints at the parameter of the function.' +config.hint.setType = 'Show hints of type at assignment operation.' +config.hint.paramName = 'Show hints of parameter name at the function call.' +config.hint.paramName.All = 'All types of parameters are shown.' +config.hint.paramName.Literal = 'Only literal type parameters are shown.' +config.hint.paramName.Disable = 'Disable parameter hints.' +config.hint.arrayIndex = 'Show hints of array index when constructing a table.' +config.hint.arrayIndex.Enable = 'Show hints in all tables.' +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.telemetry.enable = [[ +Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy). +]] +config.misc.parameters = '[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.' +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.IntelliSense.traceBeSetted = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' +config.IntelliSense.traceFieldInject = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' diff --git a/locale/pt-br/meta.lua b/locale/pt-br/meta.lua index 6e23cff8..79b2e028 100644 --- a/locale/pt-br/meta.lua +++ b/locale/pt-br/meta.lua @@ -1,3 +1,5 @@ +---@diagnostic disable: undefined-global, lowercase-global + -- basic arg = 'Argumentos de inicialização para a versão standalone da linguagem Lua.' assert = 'Emite um erro se o valor de seu argumento v for falso (i.e., `nil` ou `false`); caso contrário, devolve todos os seus argumentos. Em caso de erro, `message` é o objeto de erro que, quando ausente, por padrão é `"assertion failed!"`' diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua index 9bd7ca8a..255ad787 100644 --- a/locale/pt-br/script.lua +++ b/locale/pt-br/script.lua @@ -229,11 +229,9 @@ WINDOW_SETTING_WS_DIAGNOSTIC = 'Você pode atrasar ou desativar os diagnóst WINDOW_DONT_SHOW_AGAIN = 'Não mostre novamente' WINDOW_DELAY_WS_DIAGNOSTIC = 'Diagnóstico de tempo ocioso (atraso de {} segundos)' WINDOW_DISABLE_DIAGNOSTIC = 'Desativa diagnósticos do espaço de trabalho' -WINDOW_LUA_STATUS = [[ -Área de trabalho : {ws} -Arquivos em cache: {ast}/{max} -Uso de memória: {mem:.f}M -]] +WINDOW_LUA_STATUS_WORKSPACE = 'Área de trabalho : {}' +WINDOW_LUA_STATUS_CACHED_FILES = 'Arquivos em cache: {ast}/{max}' +WINDOW_LUA_STATUS_MEMORY_COUNT = 'Uso de memória : {mem:.f}M' WINDOW_APPLY_SETTING = 'Aplicar configuração' WINDOW_CHECK_SEMANTIC = 'Se você estiver usando o tema de cores do market, talvez seja necessário modificar `editor.semanticHighlighting.enabled` para `true` para fazer com tokens semânticas sejam habilitados.' WINDOW_TELEMETRY_HINT = 'Por favor, permita o envio de dados de uso e relatórios de erro anônimos para nos ajudar a melhorar ainda mais essa extensão. Leia nossa política de privacidade [aqui](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy) .' diff --git a/locale/zh-cn/meta.lua b/locale/zh-cn/meta.lua index c57a435c..d2fd3c7b 100644 --- a/locale/zh-cn/meta.lua +++ b/locale/zh-cn/meta.lua @@ -1,3 +1,5 @@ +---@diagnostic disable: undefined-global, lowercase-global + -- basic arg = '独立版Lua的启动参数。' assert = '如果其参数 `v` 的值为假(`nil` 或 `false`), 它就调用 $error; 否则,返回所有的参数。 在错误情况时, `message` 指那个错误对象; 如果不提供这个参数,参数默认为 `"assertion failed!"` 。' diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index 89ade0e8..7b2f8852 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/script.lua @@ -232,11 +232,9 @@ WINDOW_SETTING_WS_DIAGNOSTIC = '你可以在设置中延迟或禁用工作 WINDOW_DONT_SHOW_AGAIN = '不再提示' WINDOW_DELAY_WS_DIAGNOSTIC = '空闲时诊断(延迟{}秒)' WINDOW_DISABLE_DIAGNOSTIC = '禁用工作区诊断' -WINDOW_LUA_STATUS = [[ -工作区:{ws} -已缓存文件:{ast}/{max} -内存占用:{mem:.f}M -]] +WINDOW_LUA_STATUS_WORKSPACE = '工作区:{}' +WINDOW_LUA_STATUS_CACHED_FILES = '已缓存文件:{ast}/{max}' +WINDOW_LUA_STATUS_MEMORY_COUNT = '内存占用:{mem:.f}M' WINDOW_APPLY_SETTING = '应用设置' WINDOW_CHECK_SEMANTIC = '如果你正在使用市场中的颜色主题,你可能需要同时修改 `editor.semanticHighlighting.enabled` 选项为 `true` 才会使语义着色生效。' WINDOW_TELEMETRY_HINT = '请允许发送匿名的使用数据与错误报告,帮助我们进一步完善此插件。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。' diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua new file mode 100644 index 00000000..092638c8 --- /dev/null +++ b/locale/zh-cn/setting.lua @@ -0,0 +1,138 @@ +---@diagnostic disable: undefined-global + +config.runtime.version = "Lua运行版本。" +config.runtime.path = [[ +当使用 `require` 时,如何根据输入的名字来查找文件。 +此选项设置为 `?/init.lua` 意味着当你输入 `require 'myfile'` 时,会从已加载的文件中搜索 `{workspace}/myfile/init.lua`。 +当 `runtime.pathStrict` 设置为 `false` 时,还会尝试搜索 `${workspace}/**/myfile/init.lua`。 +如果你想要加载工作区以外的文件,你需要先设置 `Lua.workspace.library`。 +]] +config.runtime.pathStrict = '启用后 `runtime.path` 将只搜索第一层目录,见 `runtime.path` 的说明。' +config.runtime.special = [[将自定义全局变量视为一些特殊的内置变量,语言服务将提供特殊的支持。 +下面这个例子表示将 `include` 视为 `require` 。 +```json +"Lua.runtime.special" : { + "include" : "require" +} +``` +]] +config.runtime.unicodeName = "允许在名字中使用 Unicode 字符。" +config.runtime.nonstandardSymbol = "支持非标准的符号。请务必确认你的运行环境支持这些符号。" +config.runtime.plugin = "插件路径,请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/Plugin)了解用法。" +config.runtime.fileEncoding = "文件编码,`ansi` 选项只在 `Windows` 平台下有效。" +config.runtime.builtin = [[ +调整内置库的启用状态,你可以根据实际运行环境禁用掉不存在的库(或重新定义)。 + +* `default`: 表示库会根据运行版本启用或禁用 +* `enable`: 总是启用 +* `disable`: 总是禁用 +]] +config.diagnostics.enable = "启用诊断。" +config.diagnostics.disable = "禁用的诊断(使用浮框括号内的代码)。" +config.diagnostics.globals = "已定义的全局变量。" +config.diagnostics.severity = "修改诊断等级。" +config.diagnostics.neededFileStatus = [[ +* Opened: 只诊断打开的文件 +* Any: 诊断任何文件 +* Disable: 禁用此诊断 +]] +config.diagnostics.workspaceDelay = "进行工作区诊断的延迟(毫秒)。当你启动工作区,或编辑了任意文件后,将会在后台对整个工作区进行重新诊断。设置为负数可以禁用工作区诊断。" +config.diagnostics.workspaceRate = "工作区诊断的运行速率(百分比)。降低该值会减少CPU占用,但是也会降低工作区诊断的速度。你当前正在编辑的文件的诊断总是全速完成,不受该选项影响。" +config.diagnostics.libraryFiles = "如何诊断通过 `Lua.workspace.library` 加载的文件。" +config.diagnostics.ignoredFiles = "如何诊断被忽略的文件。" +config.diagnostics.files.Enable = "总是诊断这些文件。" +config.diagnostics.files.Opened = "只有打开这些文件时才会诊断。" +config.diagnostics.files.Disable = "不诊断这些文件。" +config.workspace.ignoreDir = "忽略的文件与目录(使用 `.gitignore` 语法)。" +config.workspace.ignoreSubmodules = "忽略子模块。" +config.workspace.useGitIgnore = "忽略 `.gitignore` 中列举的文件。" +config.workspace.maxPreload = "最大预加载文件数。" +config.workspace.preloadFileSize = "预加载时跳过大小大于该值(KB)的文件。" +config.workspace.library = "除了当前工作区以外,还会从哪些目录中加载文件。这些目录中的文件将被视作外部提供的代码库,部分操作(如重命名字段)不会修改这些文件。" +config.workspace.checkThirdParty = [[ +自动检测与适配第三方库,目前支持的库为: + +* OpenResty +* Cocos4.0 +* LÖVE +* LÖVR +* skynet +* Jass +]] +config.workspace.userThirdParty = '在这里添加私有的第三方库适配文件路径,请参考内置的[配置文件路径](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)' +config.completion.enable = '启用自动完成。' +config.completion.callSnippet = '显示函数调用片段。' +config.completion.callSnippet.Disable = "只显示 `函数名`。" +config.completion.callSnippet.Both = "显示 `函数名` 与 `调用片段`。" +config.completion.callSnippet.Replace = "只显示 `调用片段`。" +config.completion.keywordSnippet = '显示关键字语法片段' +config.completion.keywordSnippet.Disable = "只显示 `关键字`。" +config.completion.keywordSnippet.Both = "显示 `关键字` 与 `语法片段`。" +config.completion.keywordSnippet.Replace = "只显示 `语法片段`。" +config.completion.displayContext = "预览建议的相关代码片段,可能可以帮助你了解这项建议的用法。设置的数字表示代码片段的截取行数,设置为`0`可以禁用此功能。" +config.completion.workspaceWord = "显示的上下文单词是否包含工作区中其他文件的内容。" +config.completion.showWord = "在建议中显示上下文单词。" +config.completion.showWord.Enable = "总是在建议中显示上下文单词。" +config.completion.showWord.Fallback = "无法根据语义提供建议时才显示上下文单词。" +config.completion.showWord.Disable = "不显示上下文单词。" +config.completion.autoRequire = "输入内容看起来是个文件名时,自动 `require` 此文件。" +config.completion.showParams = "在建议列表中显示函数的参数信息,函数拥有多个定义时会分开显示。" +config.completion.requireSeparator = "`require` 时使用的分隔符。" +config.completion.postfix = "用于触发后缀建议的符号。" +config.color.mode = "着色模式。" +config.color.mode.Semantic = "语义着色。你可能需要同时将 `editor.semanticHighlighting.enabled` 设置为 `true` 才能生效。" +config.color.mode.SemanticEnhanced = "增强的语义颜色。 类似于`Semantic`,但会进行额外的分析(也会带来额外的开销)。" +config.color.mode.Grammar = "语法着色。" +config.signatureHelp.enable = "启用参数提示。" +config.hover.enable = "启用悬停提示。" +config.hover.viewString = "悬停提示查看字符串内容(仅当字面量包含转义符时)。" +config.hover.viewStringMax = "悬停提示查看字符串内容时的最大长度。" +config.hover.viewNumber = "悬停提示查看数字内容(仅当字面量不是十进制时)。" +config.hover.fieldInfer = "悬停提示查看表时,会对表的每个字段进行类型推测,当类型推测的用时累计达到该设定值(毫秒)时,将跳过后续字段的类型推测。" +config.hover.previewFields = "悬停提示查看表时,限制表内字段的最大预览数量。" +config.hover.enumsLimit = "当值对应多个类型时,限制类型的显示数量。" +config.develop.enable = '开发者模式。请勿开启,会影响性能。' +config.develop.debuggerPort = '调试器监听端口。' +config.develop.debuggerWait = '调试器连接之前挂起。' +config.intelliSense.searchDepth = '设置智能感知的搜索深度。增大该值可以增加准确度,但会降低性能。不同的项目对该设置的容忍度差异较大,请自己调整为合适的值。' +config.intelliSense.fastGlobal = '在对全局变量进行补全,及查看 `_G` 的悬浮提示时进行优化。这会略微降低类型推测的准确度,但是对于大量使用全局变量的项目会有大幅的性能提升。' +config.window.statusBar = '在状态栏显示插件状态。' +config.window.progressBar = '在状态栏显示进度条。' +config.hint.enable = '启用内联提示。' +config.hint.paramType = '在函数的参数位置提示类型。' +config.hint.setType = '在赋值操作位置提示类型。' +config.hint.paramName = '在函数调用处提示参数名。' +config.hint.paramName.All = '所有类型的参数均进行提示。' +config.hint.paramName.Literal = '只有字面量类型的参数进行提示。' +config.hint.paramName.Disable = '禁用参数提示。' +config.hint.arrayIndex = '在构造表时提示数组索引。' +config.hint.arrayIndex.Enable = '所有的表中都提示数组索引。' +config.hint.arrayIndex.Auto = '只有表大于3项,或者表是混合类型时才进行提示。' +config.hint.arrayIndex.Disable = '禁用数组索引提示。' +config.telemetry.enable = [[ +启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。 +]] +config.misc.parameters = 'VSCode中启动语言服务时的[命令行参数](https://github.com/sumneko/lua-language-server/wiki/Command-line)。' +config.IntelliSense.traceLocalSet = '请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。' +config.IntelliSense.traceReturn = '请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。' +config.IntelliSense.traceBeSetted = '请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。' +config.IntelliSense.traceFieldInject = '请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。' + + +config.diagnostics['unused-local'] = '未使用的局部变量' +config.diagnostics['unused-function'] = '未使用的函数' +config.diagnostics['undefined-global'] = '未定义的全局变量' +config.diagnostics['global-in-nil-env'] = '不能使用全局变量( `_ENV` 被设置为了 `nil`)' +config.diagnostics['unused-label'] = '未使用的标签' +config.diagnostics['unused-vararg'] = '未使用的不定参数' +config.diagnostics['trailing-space'] = '后置空格' +config.diagnostics['redefined-local'] = '重复定义的局部变量' +config.diagnostics['newline-call'] = '以 `(` 开始的新行,在语法上被解析为了上一行的函数调用' +config.diagnostics['newfield-call'] = '在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作' +config.diagnostics['redundant-parameter'] = '函数调用时,传入了多余的参数' +config.diagnostics['ambiguity-1'] = '优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ' +config.diagnostics['lowercase-global'] = '首字母小写的全局变量定义' +config.diagnostics['undefined-env-child'] = '`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中' +config.diagnostics['duplicate-index'] = '在字面量表中重复定义了索引' +config.diagnostics['empty-block'] = '空代码块' +config.diagnostics['redundant-value'] = '赋值操作时,值的数量比被赋值的对象多' |