@@ -28,8 +28,8 @@ config.runtime.nonstandardSymbol =
2828" 支持非标准的符号。请务必确认你的运行环境支持这些符号。"
2929config .runtime .plugin =
3030" 插件路径,请查阅[文档](https://luals.github.io/wiki/plugins)了解用法。"
31- config .runtime .pluginArgs = -- TODO: need translate!
32- " Additional arguments for the plugin. "
31+ config .runtime .pluginArgs =
32+ " 插件的额外参数。 "
3333config .runtime .fileEncoding =
3434" 文件编码,`ansi` 选项只在 `Windows` 平台下有效。"
3535config .runtime .builtin =
@@ -48,8 +48,8 @@ config.diagnostics.disable =
4848" 禁用的诊断(使用浮框括号内的代码)。"
4949config .diagnostics .globals =
5050" 已定义的全局变量。"
51- config .diagnostics .globalsRegex = -- TODO: need translate!
52- " Find defined global variables using regex. "
51+ config .diagnostics .globalsRegex =
52+ " 启用诊断以检测尝试关闭非对象的变量。 "
5353config .diagnostics .severity =
5454[[
5555修改诊断等级。
@@ -280,10 +280,10 @@ config.misc.parameters =
280280' VSCode中启动语言服务时的[命令行参数](https://luals.github.io/wiki/usage#arguments)。'
281281config .misc .executablePath =
282282' VSCode中指定可执行文件路径。'
283- config .language .fixIndent = -- TODO: need translate!
284- ' (VSCode only) Fix incorrect auto-indentation, such as incorrect indentation when line breaks occur within a string containing the word "function." '
285- config .language .completeAnnotation = -- TODO: need translate!
286- ' (VSCode only) Automatically insert "---@ " after a line break following a annotation. '
283+ config .language .fixIndent =
284+ ' (仅VSCode) 修复错误的自动缩进,例如在包含单词 "function" 的字符串中换行时出现的错误缩进。 '
285+ config .language .completeAnnotation =
286+ ' (仅VSCode) 在注解后换行时自动插入 "---@ "。 '
287287config .type .castNumberToInteger =
288288' 允许将 `number` 类型赋给 `integer` 类型。'
289289config .type .weakUnionCheck =
@@ -358,12 +358,12 @@ config.diagnostics['cast-type-mismatch'] =
358358' 变量被转换为与其初始类型不匹配的类型'
359359config .diagnostics [' circular-doc-class' ] =
360360' 两个类相互继承并互相循环'
361- config .diagnostics [' close-non-object' ] = -- TODO: need translate!
362- ' Enable diagnostics for attempts to close a variable with a non-object. '
361+ config .diagnostics [' close-non-object' ] =
362+ ' 尝试关闭非对象变量的诊断 '
363363config .diagnostics [' code-after-break' ] =
364364' 放在循环中break语句后面的代码'
365- config .diagnostics [' codestyle-check' ] = -- TODO: need translate!
366- ' Enable diagnostics for incorrectly styled lines. '
365+ config .diagnostics [' codestyle-check' ] =
366+ ' 启用对不正确样式行的诊断 '
367367config .diagnostics [' count-down-loop' ] =
368368' for循环永远无法达到最大/极限值(在递减时递增)'
369369config .diagnostics [' deprecated' ] =
@@ -410,9 +410,9 @@ config.diagnostics['redundant-return-value']=
410410' 返回`@return`注释未指定的额外值'
411411config .diagnostics [' return-type-mismatch' ] =
412412' 返回值的类型与`@return`中声明的类型不匹配'
413- config .diagnostics [' spell-check' ] = -- TODO: need translate!
414- ' Enable diagnostics for typos in strings. '
415- config .diagnostics [' name-style-check' ] = -- TODO: need translate!
413+ config .diagnostics [' spell-check' ] =
414+ ' 启用字符串拼写检查的诊断。 '
415+ config .diagnostics [' name-style-check' ] =
416416' 变量的名称样式检查'
417417config .diagnostics [' unbalanced-assignments' ]=
418418' 多重赋值时没有赋值所有变量(如`local x,y = 1`)'
@@ -432,8 +432,8 @@ config.diagnostics['unknown-operator'] =
432432' 未知的运算符'
433433config .diagnostics [' unreachable-code' ] =
434434' 不可达的代码'
435- config .diagnostics [' global-element' ] = -- TODO: need translate!
436- ' Enable diagnostics to warn about global elements. '
435+ config .diagnostics [' global-element' ] =
436+ ' 启用诊断以警告全局元素。 '
437437config .typeFormat .config =
438438' 配置输入Lua代码时的格式化行为'
439439config .typeFormat .config .auto_complete_end =
0 commit comments