Skip to content

Commit 2d28d6a

Browse files
committed
3.11.0
1 parent 4f68a9b commit 2d28d6a

14 files changed

+3881
-19
lines changed

changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
55

6+
## 3.11.0
7+
* `NEW` Added support for Japanese locale
8+
* `NEW` Infer function parameter types when overriding the same-named class function in an instance of that class [#2158](https://github.com/LuaLS/lua-language-server/issues/2158)
9+
* `NEW` Types with literal fields can be narrowed.
10+
* `NEW` Reference addons installed via the addon manager with `${addons}` [#2866](https://github.com/LuaLS/lua-language-server/pull/2866).
11+
* `NEW` Support using `---@class` on `rawset(_G, ...)` to annotate the created global variable [#2862](https://github.com/LuaLS/lua-language-server/issues/2862)
12+
* `NEW` Settings:
13+
+ `Lua.language.fixIndent`
14+
+ `Lua.language.completeAnnotation`
15+
* `FIX` Eliminate floating point error in test benchmark output
16+
* `FIX` Remove luamake install from make scripts
17+
* `FIX` Incorrect `table` type injected to the global variable created by `rawset(_G, ...)` [#2863](https://github.com/LuaLS/lua-language-server/issues/2863)
18+
619
## 3.10.6
720
`2024-9-10`
821
* `NEW` Custom documentation exporter

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2650,6 +2650,18 @@
26502650
"scope": "resource",
26512651
"type": "integer"
26522652
},
2653+
"Lua.language.completeAnnotation": {
2654+
"default": true,
2655+
"markdownDescription": "%config.language.completeAnnotation%",
2656+
"scope": "resource",
2657+
"type": "boolean"
2658+
},
2659+
"Lua.language.fixIndent": {
2660+
"default": true,
2661+
"markdownDescription": "%config.language.fixIndent%",
2662+
"scope": "resource",
2663+
"type": "boolean"
2664+
},
26532665
"Lua.misc.executablePath": {
26542666
"default": "",
26552667
"markdownDescription": "%config.misc.executablePath%",
@@ -3394,5 +3406,5 @@
33943406
"sponsor": {
33953407
"url": "https://github.com/LuaLS/lua-language-server/issues/484"
33963408
},
3397-
"version": "3.10.6"
3409+
"version": "3.11.0"
33983410
}

package.nls.ja-jp.json

Lines changed: 242 additions & 0 deletions
Large diffs are not rendered by default.

package.nls.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@
167167
"config.hover.viewStringMax": "The maximum length of a hover to view the contents of a string.",
168168
"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.",
169169
"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.",
170+
"config.language.completeAnnotation": "(VSCode only) Automatically insert \"---@ \" after a line break following a annotation.",
171+
"config.language.fixIndent": "(VSCode only) Fix incorrect auto-indentation, such as incorrect indentation when line breaks occur within a string containing the word \"function.\"",
170172
"config.misc.executablePath": "Specify the executable path in VSCode.",
171173
"config.misc.parameters": "[Command line parameters](https://github.com/LuaLS/lua-telemetry-server/tree/master/method) when starting the language server in VSCode.",
172174
"config.nameStyle.config": "Set name style config",

package.nls.pt-br.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@
167167
"config.hover.viewStringMax": "The maximum length of a hover to view the contents of a string.",
168168
"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.",
169169
"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.",
170+
"config.language.completeAnnotation": "(VSCode only) Automatically insert \"---@ \" after a line break following a annotation.",
171+
"config.language.fixIndent": "(VSCode only) Fix incorrect auto-indentation, such as incorrect indentation when line breaks occur within a string containing the word \"function.\"",
170172
"config.misc.executablePath": "Specify the executable path in VSCode.",
171173
"config.misc.parameters": "[Command line parameters](https://github.com/LuaLS/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.",
172174
"config.nameStyle.config": "Set name style config",

package.nls.zh-cn.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
"config.diagnostics.cast-type-mismatch": "变量被转换为与其初始类型不匹配的类型",
4242
"config.diagnostics.circle-doc-class": "TODO: Needs documentation",
4343
"config.diagnostics.circular-doc-class": "两个类相互继承并互相循环",
44-
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
44+
"config.diagnostics.close-non-object": "尝试关闭非对象变量的诊断",
4545
"config.diagnostics.code-after-break": "放在循环中break语句后面的代码",
4646
"config.diagnostics.codestyle": "* codestyle-check\n* name-style-check\n* spell-check",
47-
"config.diagnostics.codestyle-check": "Enable diagnostics for incorrectly styled lines.",
47+
"config.diagnostics.codestyle-check": "启用对不正确样式行的诊断",
4848
"config.diagnostics.conventions": "* global-element",
4949
"config.diagnostics.count-down-loop": "for循环永远无法达到最大/极限值(在递减时递增)",
5050
"config.diagnostics.deprecated": "变量已被标记为deprecated(过时)但仍在使用",
@@ -62,10 +62,10 @@
6262
"config.diagnostics.empty-block": "空代码块",
6363
"config.diagnostics.enable": "启用诊断。",
6464
"config.diagnostics.global": "* global-in-nil-env\n* lowercase-global\n* undefined-env-child\n* undefined-global",
65-
"config.diagnostics.global-element": "Enable diagnostics to warn about global elements.",
65+
"config.diagnostics.global-element": "启用诊断以警告全局元素。",
6666
"config.diagnostics.global-in-nil-env": "不能使用全局变量( `_ENV` 被设置为了 `nil`)",
6767
"config.diagnostics.globals": "已定义的全局变量。",
68-
"config.diagnostics.globalsRegex": "Find defined global variables using regex.",
68+
"config.diagnostics.globalsRegex": "启用诊断以检测尝试关闭非对象的变量。",
6969
"config.diagnostics.groupFileStatus": "批量修改一个组中的文件状态。\n\n* Opened: 只诊断打开的文件\n* Any: 诊断任何文件\n* None: 禁用此诊断\n\n设置为 `Fallback` 意味着组中的诊断由 `diagnostics.neededFileStatus` 单独设置。\n其他设置将覆盖单独设置,但是不会覆盖以 `!` 结尾的设置。\n",
7070
"config.diagnostics.groupSeverity": "批量修改一个组中的诊断等级。\n设置为 `Fallback` 意味着组中的诊断由 `diagnostics.severity` 单独设置。\n其他设置将覆盖单独设置,但是不会覆盖以 `!` 结尾的设置。\n",
7171
"config.diagnostics.ignoredFiles": "如何诊断被忽略的文件。",
@@ -103,7 +103,7 @@
103103
"config.diagnostics.redundant-value": "赋值操作时,值的数量比被赋值的对象多",
104104
"config.diagnostics.return-type-mismatch": "返回值的类型与`@return`中声明的类型不匹配",
105105
"config.diagnostics.severity": "修改诊断等级。\n以 `!` 结尾的设置优先级高于组设置 `diagnostics.groupSeverity`。\n",
106-
"config.diagnostics.spell-check": "Enable diagnostics for typos in strings.",
106+
"config.diagnostics.spell-check": "启用字符串拼写检查的诊断。",
107107
"config.diagnostics.strict": "* close-non-object\n* deprecated\n* discard-returns\n* invisible",
108108
"config.diagnostics.strong": "* no-unknown",
109109
"config.diagnostics.trailing-space": "后置空格",
@@ -167,6 +167,8 @@
167167
"config.hover.viewStringMax": "悬停提示查看字符串内容时的最大长度。",
168168
"config.intelliSense.fastGlobal": "在对全局变量进行补全,及查看 `_G` 的悬浮提示时进行优化。这会略微降低类型推测的准确度,但是对于大量使用全局变量的项目会有大幅的性能提升。",
169169
"config.intelliSense.searchDepth": "设置智能感知的搜索深度。增大该值可以增加准确度,但会降低性能。不同的项目对该设置的容忍度差异较大,请自己调整为合适的值。",
170+
"config.language.completeAnnotation": "(仅VSCode) 在注解后换行时自动插入 \"---@ \"",
171+
"config.language.fixIndent": "(仅VSCode) 修复错误的自动缩进,例如在包含单词 \"function\" 的字符串中换行时出现的错误缩进。",
170172
"config.misc.executablePath": "VSCode中指定可执行文件路径。",
171173
"config.misc.parameters": "VSCode中启动语言服务时的[命令行参数](https://luals.github.io/wiki/usage#arguments)。",
172174
"config.nameStyle.config": "设定命名风格检查的配置",
@@ -201,7 +203,7 @@
201203
"config.runtime.path": "当使用 `require` 时,如何根据输入的名字来查找文件。\n此选项设置为 `?/init.lua` 意味着当你输入 `require 'myfile'` 时,会从已加载的文件中搜索 `{workspace}/myfile/init.lua`。\n当 `runtime.pathStrict` 设置为 `false` 时,还会尝试搜索 `${workspace}/**/myfile/init.lua`。\n如果你想要加载工作区以外的文件,你需要先设置 `Lua.workspace.library`。\n",
202204
"config.runtime.pathStrict": "启用后 `runtime.path` 将只搜索第一层目录,见 `runtime.path` 的说明。",
203205
"config.runtime.plugin": "插件路径,请查阅[文档](https://luals.github.io/wiki/plugins)了解用法。",
204-
"config.runtime.pluginArgs": "Additional arguments for the plugin.",
206+
"config.runtime.pluginArgs": "插件的额外参数。",
205207
"config.runtime.special": "将自定义全局变量视为一些特殊的内置变量,语言服务将提供特殊的支持。\n下面这个例子表示将 `include` 视为 `require` 。\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n",
206208
"config.runtime.unicodeName": "允许在名字中使用 Unicode 字符。",
207209
"config.runtime.version": "Lua运行版本。",

package.nls.zh-tw.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@
167167
"config.hover.viewStringMax": "懸浮提示檢視字串內容時的最大長度。",
168168
"config.intelliSense.fastGlobal": "在對全域變數進行補全,及檢視 `_G` 的懸浮提示時進行最佳化。這會略微降低類型推測的準確度,但是對於大量使用全域變數的專案會有大幅的效能提升。",
169169
"config.intelliSense.searchDepth": "設定智慧感知的搜尋深度。增大該值可以增加準確度,但會降低效能。不同的工作區對該設定的容忍度差異較大,請自己調整為合適的值。",
170+
"config.language.completeAnnotation": "(VSCode only) Automatically insert \"---@ \" after a line break following a annotation.",
171+
"config.language.fixIndent": "(VSCode only) Fix incorrect auto-indentation, such as incorrect indentation when line breaks occur within a string containing the word \"function.\"",
170172
"config.misc.executablePath": "Specify the executable path in VSCode.",
171173
"config.misc.parameters": "VSCode中啟動語言伺服時的[命令列參數](https://luals.github.io/wiki/usage#arguments)。",
172174
"config.nameStyle.config": "Set name style config",

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.10.6"
3+
local VERSION = "3.11.0"
44

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

server

Submodule server updated 95 files

0 commit comments

Comments
 (0)