@@ -28,8 +28,8 @@ config.runtime.nonstandardSymbol =
28
28
" 支持非标准的符号。请务必确认你的运行环境支持这些符号。"
29
29
config .runtime .plugin =
30
30
" 插件路径,请查阅[文档](https://luals.github.io/wiki/plugins)了解用法。"
31
- config .runtime .pluginArgs = -- TODO: need translate!
32
- " Additional arguments for the plugin. "
31
+ config .runtime .pluginArgs =
32
+ " 插件的额外参数。 "
33
33
config .runtime .fileEncoding =
34
34
" 文件编码,`ansi` 选项只在 `Windows` 平台下有效。"
35
35
config .runtime .builtin =
@@ -48,8 +48,8 @@ config.diagnostics.disable =
48
48
" 禁用的诊断(使用浮框括号内的代码)。"
49
49
config .diagnostics .globals =
50
50
" 已定义的全局变量。"
51
- config .diagnostics .globalsRegex = -- TODO: need translate!
52
- " Find defined global variables using regex. "
51
+ config .diagnostics .globalsRegex =
52
+ " 启用诊断以检测尝试关闭非对象的变量。 "
53
53
config .diagnostics .severity =
54
54
[[
55
55
修改诊断等级。
@@ -280,10 +280,10 @@ config.misc.parameters =
280
280
' VSCode中启动语言服务时的[命令行参数](https://luals.github.io/wiki/usage#arguments)。'
281
281
config .misc .executablePath =
282
282
' 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) 在注解后换行时自动插入 "---@ "。 '
287
287
config .type .castNumberToInteger =
288
288
' 允许将 `number` 类型赋给 `integer` 类型。'
289
289
config .type .weakUnionCheck =
@@ -358,12 +358,12 @@ config.diagnostics['cast-type-mismatch'] =
358
358
' 变量被转换为与其初始类型不匹配的类型'
359
359
config .diagnostics [' circular-doc-class' ] =
360
360
' 两个类相互继承并互相循环'
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
+ ' 尝试关闭非对象变量的诊断 '
363
363
config .diagnostics [' code-after-break' ] =
364
364
' 放在循环中break语句后面的代码'
365
- config .diagnostics [' codestyle-check' ] = -- TODO: need translate!
366
- ' Enable diagnostics for incorrectly styled lines. '
365
+ config .diagnostics [' codestyle-check' ] =
366
+ ' 启用对不正确样式行的诊断 '
367
367
config .diagnostics [' count-down-loop' ] =
368
368
' for循环永远无法达到最大/极限值(在递减时递增)'
369
369
config .diagnostics [' deprecated' ] =
@@ -410,9 +410,9 @@ config.diagnostics['redundant-return-value']=
410
410
' 返回`@return`注释未指定的额外值'
411
411
config .diagnostics [' return-type-mismatch' ] =
412
412
' 返回值的类型与`@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' ] =
416
416
' 变量的名称样式检查'
417
417
config .diagnostics [' unbalanced-assignments' ]=
418
418
' 多重赋值时没有赋值所有变量(如`local x,y = 1`)'
@@ -432,8 +432,8 @@ config.diagnostics['unknown-operator'] =
432
432
' 未知的运算符'
433
433
config .diagnostics [' unreachable-code' ] =
434
434
' 不可达的代码'
435
- config .diagnostics [' global-element' ] = -- TODO: need translate!
436
- ' Enable diagnostics to warn about global elements. '
435
+ config .diagnostics [' global-element' ] =
436
+ ' 启用诊断以警告全局元素。 '
437
437
config .typeFormat .config =
438
438
' 配置输入Lua代码时的格式化行为'
439
439
config .typeFormat .config .auto_complete_end =
0 commit comments