Skip to content

Commit ae7784e

Browse files
committed
3.7.4
1 parent a6fc3ae commit ae7784e

File tree

6 files changed

+132
-128
lines changed

6 files changed

+132
-128
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# changelog
22

3+
## 3.7.4
4+
`2024-1-5`
5+
* `FIX` rename to unicode with `Lua.runtime.unicodeName = true`
6+
37
## 3.7.3
48
`2023-11-14`
59
* `FIX` can not infer arg type in some cases.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3343,5 +3343,5 @@
33433343
"sponsor": {
33443344
"url": "https://github.com/LuaLS/lua-language-server/issues/484"
33453345
},
3346-
"version": "3.7.3"
3346+
"version": "3.7.4"
33473347
}

package.nls.zh-cn.json

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"command.addon_manager.open": "Lua: 打开插件管理器...",
33
"command.exportDocument": "Lua: 导出文档...",
44
"command.reloadFFIMeta": "Lua: 重新生成luajit的FFI模块C语言元数据",
5-
"config.addonManager.enable": "Whether the addon manager is enabled or not.",
5+
"config.addonManager.enable": "是否启用扩展的附加插件管理器(Addon Manager)",
66
"config.codeLens.enable": "启用代码度量。",
77
"config.color.mode": "着色模式。",
88
"config.color.mode.Grammar": "语法着色。",
@@ -32,31 +32,31 @@
3232
"config.develop.enable": "开发者模式。请勿开启,会影响性能。",
3333
"config.diagnostics.ambiguity": "* ambiguity-1\n* count-down-loop\n* different-requires\n* newfield-call\n* newline-call",
3434
"config.diagnostics.ambiguity-1": "优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ",
35-
"config.diagnostics.assign-type-mismatch": "Enable diagnostics for assignments in which the value's type does not match the type of the assigned variable.",
35+
"config.diagnostics.assign-type-mismatch": "值类型与赋值变量类型不匹配",
3636
"config.diagnostics.await": "* await-in-sync\n* not-yieldable",
37-
"config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.",
38-
"config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.",
39-
"config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.",
37+
"config.diagnostics.await-in-sync": "同步函数中异步函数调用",
38+
"config.diagnostics.cast-local-type": "已显式定义变量类型与要定义的值的类型不匹配",
39+
"config.diagnostics.cast-type-mismatch": "变量被转换为与其初始类型不匹配的类型",
4040
"config.diagnostics.circle-doc-class": "TODO: Needs documentation",
41-
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
41+
"config.diagnostics.circular-doc-class": "两个类相互继承并互相循环",
4242
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
43-
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
43+
"config.diagnostics.code-after-break": "放在循环中break语句后面的代码",
4444
"config.diagnostics.codestyle": "* codestyle-check\n* name-style-check\n* spell-check",
4545
"config.diagnostics.codestyle-check": "Enable diagnostics for incorrectly styled lines.",
4646
"config.diagnostics.conventions": "* global-element",
47-
"config.diagnostics.count-down-loop": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.",
48-
"config.diagnostics.deprecated": "Enable diagnostics to highlight deprecated API.",
49-
"config.diagnostics.different-requires": "Enable diagnostics for files which are required by two different paths.",
47+
"config.diagnostics.count-down-loop": "for循环永远无法达到最大/极限值(在递减时递增)",
48+
"config.diagnostics.deprecated": "变量已被标记为deprecated(过时)但仍在使用",
49+
"config.diagnostics.different-requires": "required的同一个文件使用了两个不同的名字",
5050
"config.diagnostics.disable": "禁用的诊断(使用浮框括号内的代码)。",
5151
"config.diagnostics.disableScheme": "不诊断使用以下 scheme 的lua文件。",
52-
"config.diagnostics.discard-returns": "Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.",
53-
"config.diagnostics.doc-field-no-class": "Enable diagnostics to highlight a field annotation without a defining class annotation.",
52+
"config.diagnostics.discard-returns": "函数的返回值被忽略(函数被`@nodiscard`标记时)",
53+
"config.diagnostics.doc-field-no-class": "为不存在的类`@class`标记`@field`字段",
5454
"config.diagnostics.duplicate": "* duplicate-index\n* duplicate-set-field",
55-
"config.diagnostics.duplicate-doc-alias": "Enable diagnostics for a duplicated alias annotation name.",
56-
"config.diagnostics.duplicate-doc-field": "Enable diagnostics for a duplicated field annotation name.",
57-
"config.diagnostics.duplicate-doc-param": "Enable diagnostics for a duplicated param annotation name.",
55+
"config.diagnostics.duplicate-doc-alias": "`@alias`字段的名字冲突",
56+
"config.diagnostics.duplicate-doc-field": "`@field`字段的名字冲突",
57+
"config.diagnostics.duplicate-doc-param": "`@param`字段的名字冲突",
5858
"config.diagnostics.duplicate-index": "在字面量表中重复定义了索引",
59-
"config.diagnostics.duplicate-set-field": "Enable diagnostics for setting the same field in a class more than once.",
59+
"config.diagnostics.duplicate-set-field": "在一个类中多次定义同一字段",
6060
"config.diagnostics.empty-block": "空代码块",
6161
"config.diagnostics.enable": "启用诊断。",
6262
"config.diagnostics.global": "* global-in-nil-env\n* lowercase-global\n* undefined-env-child\n* undefined-global",
@@ -69,54 +69,54 @@
6969
"config.diagnostics.ignoredFiles.Disable": "不诊断这些文件。",
7070
"config.diagnostics.ignoredFiles.Enable": "总是诊断这些文件。",
7171
"config.diagnostics.ignoredFiles.Opened": "只有打开这些文件时才会诊断。",
72-
"config.diagnostics.incomplete-signature-doc": "Incomplete @param or @return annotations for functions.",
72+
"config.diagnostics.incomplete-signature-doc": "`@param`或`@return`的注释不完整",
7373
"config.diagnostics.inject-field": "TODO: Needs documentation",
74-
"config.diagnostics.invisible": "Enable diagnostics for accesses to fields which are invisible.",
74+
"config.diagnostics.invisible": "使用不可见的值",
7575
"config.diagnostics.libraryFiles": "如何诊断通过 `Lua.workspace.library` 加载的文件。",
7676
"config.diagnostics.libraryFiles.Disable": "不诊断这些文件。",
7777
"config.diagnostics.libraryFiles.Enable": "总是诊断这些文件。",
7878
"config.diagnostics.libraryFiles.Opened": "只有打开这些文件时才会诊断。",
7979
"config.diagnostics.lowercase-global": "首字母小写的全局变量定义",
8080
"config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* incomplete-signature-doc\n* missing-global-doc\n* missing-local-export-doc\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator",
8181
"config.diagnostics.missing-fields": "TODO: Needs documentation",
82-
"config.diagnostics.missing-global-doc": "Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.",
83-
"config.diagnostics.missing-local-export-doc": "Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.",
84-
"config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.",
85-
"config.diagnostics.missing-return": "Enable diagnostics for functions with return annotations which have no return statement.",
86-
"config.diagnostics.missing-return-value": "Enable diagnostics for return statements without values although the containing function declares returns.",
87-
"config.diagnostics.name-style-check": "Enable diagnostics for name style.",
88-
"config.diagnostics.need-check-nil": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.",
82+
"config.diagnostics.missing-global-doc": "全局变量的注释缺失(全局函数必须为所有参数和返回值提供注释和注释)",
83+
"config.diagnostics.missing-local-export-doc": "导出的本地函数缺少注释(导出的本地函数必须有包括本身以及所有参数和返回值的注释)",
84+
"config.diagnostics.missing-parameter": "函数参数数少于注释函数参数数",
85+
"config.diagnostics.missing-return": "函数带有返回注释而无返回语句",
86+
"config.diagnostics.missing-return-value": "函数无值返回但函数使用`@return`标记了返回值",
87+
"config.diagnostics.name-style-check": "变量的名称样式检查",
88+
"config.diagnostics.need-check-nil": "变量之前被赋值为`nil`或可选值(可能为 `nil`)",
8989
"config.diagnostics.neededFileStatus": "* Opened: 只诊断打开的文件\n* Any: 诊断任何文件\n* None: 禁用此诊断\n\n以 `!` 结尾的设置优先级高于组设置 `diagnostics.groupFileStatus`。\n",
9090
"config.diagnostics.newfield-call": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作",
9191
"config.diagnostics.newline-call": "以 `(` 开始的新行,在语法上被解析为了上一行的函数调用",
92-
"config.diagnostics.no-unknown": "Enable diagnostics for cases in which the type cannot be inferred.",
93-
"config.diagnostics.not-yieldable": "Enable diagnostics for calls to `coroutine.yield()` when it is not permitted.",
94-
"config.diagnostics.param-type-mismatch": "Enable diagnostics for function calls where the type of a provided parameter does not match the type of the annotated function definition.",
92+
"config.diagnostics.no-unknown": "变量的未知类型无法推断",
93+
"config.diagnostics.not-yieldable": "不允许调用 `coroutine.yield()` ",
94+
"config.diagnostics.param-type-mismatch": "给定参数的类型与函数定义所要求的类型(`@param`)不匹配",
9595
"config.diagnostics.redefined": "* redefined-local",
9696
"config.diagnostics.redefined-local": "重复定义的局部变量",
9797
"config.diagnostics.redundant-parameter": "函数调用时,传入了多余的参数",
98-
"config.diagnostics.redundant-return": "Enable diagnostics for return statements which are not needed because the function would exit on its own.",
99-
"config.diagnostics.redundant-return-value": "Enable diagnostics for return statements which return an extra value which is not specified by a return annotation.",
98+
"config.diagnostics.redundant-return": "当放置一个不需要的返回值时触发(函数会自行退出)",
99+
"config.diagnostics.redundant-return-value": "返回`@return`注释未指定的额外值",
100100
"config.diagnostics.redundant-value": "赋值操作时,值的数量比被赋值的对象多",
101-
"config.diagnostics.return-type-mismatch": "Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.",
101+
"config.diagnostics.return-type-mismatch": "返回值的类型与`@return`中声明的类型不匹配",
102102
"config.diagnostics.severity": "修改诊断等级。\n以 `!` 结尾的设置优先级高于组设置 `diagnostics.groupSeverity`。\n",
103103
"config.diagnostics.spell-check": "Enable diagnostics for typos in strings.",
104104
"config.diagnostics.strict": "* close-non-object\n* deprecated\n* discard-returns\n* invisible",
105105
"config.diagnostics.strong": "* no-unknown",
106106
"config.diagnostics.trailing-space": "后置空格",
107107
"config.diagnostics.type-check": "* assign-type-mismatch\n* cast-local-type\n* cast-type-mismatch\n* inject-field\n* need-check-nil\n* param-type-mismatch\n* return-type-mismatch\n* undefined-field",
108108
"config.diagnostics.unbalanced": "* missing-fields\n* missing-parameter\n* missing-return\n* missing-return-value\n* redundant-parameter\n* redundant-return-value\n* redundant-value\n* unbalanced-assignments",
109-
"config.diagnostics.unbalanced-assignments": "Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).",
110-
"config.diagnostics.undefined-doc-class": "Enable diagnostics for class annotations in which an undefined class is referenced.",
111-
"config.diagnostics.undefined-doc-name": "Enable diagnostics for type annotations referencing an undefined type or alias.",
112-
"config.diagnostics.undefined-doc-param": "Enable diagnostics for cases in which a parameter annotation is given without declaring the parameter in the function definition.",
109+
"config.diagnostics.unbalanced-assignments": "多重赋值时没有赋值所有变量(如`local x,y = 1`)",
110+
"config.diagnostics.undefined-doc-class": "在`@class`注解中引用未定义的类。",
111+
"config.diagnostics.undefined-doc-name": "在`@type`注解中引用未定义的类型或`@alias`",
112+
"config.diagnostics.undefined-doc-param": "函数声明中`@param`引用了未定义的参数",
113113
"config.diagnostics.undefined-env-child": "`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中",
114-
"config.diagnostics.undefined-field": "Enable diagnostics for cases in which an undefined field of a variable is read.",
114+
"config.diagnostics.undefined-field": "引用变量的未定义字段",
115115
"config.diagnostics.undefined-global": "未定义的全局变量",
116-
"config.diagnostics.unknown-cast-variable": "Enable diagnostics for casts of undefined variables.",
117-
"config.diagnostics.unknown-diag-code": "Enable diagnostics in cases in which an unknown diagnostics code is entered.",
118-
"config.diagnostics.unknown-operator": "Enable diagnostics for unknown operators.",
119-
"config.diagnostics.unreachable-code": "Enable diagnostics for unreachable code.",
116+
"config.diagnostics.unknown-cast-variable": "使用`@cast`对未定义变量的强制转换",
117+
"config.diagnostics.unknown-diag-code": "未知的诊断代码",
118+
"config.diagnostics.unknown-operator": "未知的运算符",
119+
"config.diagnostics.unreachable-code": "不可达的代码",
120120
"config.diagnostics.unused": "* code-after-break\n* empty-block\n* redundant-return\n* trailing-space\n* unreachable-code\n* unused-function\n* unused-label\n* unused-local\n* unused-vararg",
121121
"config.diagnostics.unused-function": "未使用的函数",
122122
"config.diagnostics.unused-label": "未使用的标签",
@@ -213,10 +213,10 @@
213213
"config.type.castNumberToInteger": "允许将 `number` 类型赋给 `integer` 类型。",
214214
"config.type.weakNilCheck": "对联合类型进行类型检查时,忽略其中的 `nil`。\n\n此设置为 `false` 时,`numer|nil` 类型无法赋给 `number` 类型;为 `true` 是则可以。\n",
215215
"config.type.weakUnionCheck": "联合类型中只要有一个子类型满足条件,则联合类型也满足条件。\n\n此设置为 `false` 时,`number|boolean` 类型无法赋给 `number` 类型;为 `true` 时则可以。\n",
216-
"config.typeFormat.config": "Configures the formatting behavior while typing Lua code.",
217-
"config.typeFormat.config.auto_complete_end": "Controls if `end` is automatically completed at suitable positions.",
218-
"config.typeFormat.config.auto_complete_table_sep": "Controls if a separator is automatically appended at the end of a table declaration.",
219-
"config.typeFormat.config.format_line": "Controls if a line is formatted at all.",
216+
"config.typeFormat.config": "配置输入Lua代码时的格式化行为",
217+
"config.typeFormat.config.auto_complete_end": "是否在合适的位置自动完成 `end`",
218+
"config.typeFormat.config.auto_complete_table_sep": "是否在table末尾自动添加分隔符",
219+
"config.typeFormat.config.format_line": "是否对某一行进行格式化",
220220
"config.window.progressBar": "在状态栏显示进度条。",
221221
"config.window.statusBar": "在状态栏显示插件状态。",
222222
"config.workspace.checkThirdParty": "自动检测与适配第三方库,目前支持的库为:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",

package/build.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local json = require 'json-beautify'
22

3-
local VERSION = "3.7.3"
3+
local VERSION = "3.7.4"
44

55
local package = require 'package.package'
66
local fsu = require 'fs-utility'

0 commit comments

Comments
 (0)