Skip to content

Commit 5fa0fbb

Browse files
committed
3.13.6
1 parent f8ecc4b commit 5fa0fbb

8 files changed

+46
-11
lines changed

changelog.md

+35
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,41 @@
33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
55

6+
## 3.13.6
7+
`2025-2-6`
8+
* `NEW` `---@class` supports attribute `partial`, which will not check missing inherited fields [#3023](https://github.com/LuaLS/lua-language-server/issues/3023)
9+
```lua
10+
---@class Config
11+
---@field a number
12+
13+
---@class (partial) Config.P: Config
14+
---@field b number
15+
16+
---@type Config.P[]
17+
local cfgs = {}
18+
cfgs[1] = { b = 1 } -- no warning
19+
cfgs[2] = {} -- only warns missing `b`
20+
```
21+
This enables the previous missing field check behavior before [#2970](https://github.com/LuaLS/lua-language-server/issues/2970)
22+
* `NEW` Added variable substitution support for vscode's `${workspaceFolder:x}` when resolving path placeholders [#2987](https://github.com/LuaLS/lua-language-server/issues/2987)
23+
* `NEW` Added `--check_format=json|pretty` for use with `--check` to output diagnostics in a human readable format.
24+
* `NEW` Test CLI: `--name=<testname>` `-n=<testname>`: run specify unit test
25+
* `CHG` [#3014] Generic pattern now supports definition after capture and optional, union, array
26+
```lua
27+
---@generic T
28+
---@param t `T`.Cat?
29+
---@return T?
30+
local function f(t) end
31+
32+
local t = f('Smile') --> t is `(Smile.Cat)?`
33+
```
34+
* `FIX` Fixed the error that the configuration file pointed to by the `--configpath` option was not read and loaded.
35+
* `FIX` Don't truncate any output when running in `--doc` mode [#3049](https://github.com/LuaLS/lua-language-server/issues/3049)
36+
* `FIX` Generic return can be optional.
37+
* `FIX` Fixed the comment calculating in docs `---@param a string?Comment` - now its `Comment` instead of `omment`.
38+
* `FIX` Fixed cannot bind variables using tail comment `@class` [#2673](https://github.com/LuaLS/lua-language-server/issues/2673)
39+
* `FIX` Fixed missing field completion for generic class object [#2196](https://github.com/LuaLS/lua-language-server/issues/2196) [#2945](https://github.com/LuaLS/lua-language-server/issues/2945) [#3041](https://github.com/LuaLS/lua-language-server/issues/3041)
40+
641
## 3.13.5
742
`2024-12-20`
843
* `NEW` Setting: `Lua.hint.awaitPropagate`: When enabled, --@async propagates to the caller.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3439,5 +3439,5 @@
34393439
"sponsor": {
34403440
"url": "https://github.com/LuaLS/lua-language-server/issues/484"
34413441
},
3442-
"version": "3.13.5"
3442+
"version": "3.13.6"
34433443
}

package.nls.ja-jp.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"command.addon_manager.open": "Lua: Open Addon Manager ...",
33
"command.exportDocument": "Lua: Export Document ...",
44
"command.reloadFFIMeta": "Lua: Reload luajit ffi meta",
5-
"command.startServer": "Lua: (debug) Start Language Server",
6-
"command.stopServer": "Lua: (debug) Stop Language Server",
5+
"command.startServer": "Lua: Restart Language Server",
6+
"command.stopServer": "Lua: Stop Language Server",
77
"config.addonManager.enable": "Whether the addon manager is enabled or not.",
88
"config.addonManager.repositoryBranch": "Specifies the git branch used by the addon manager.",
99
"config.addonManager.repositoryPath": "Specifies the git path used by the addon manager.",

package.nls.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"command.addon_manager.open": "Lua: Open Addon Manager ...",
33
"command.exportDocument": "Lua: Export Document ...",
44
"command.reloadFFIMeta": "Lua: Reload luajit ffi meta",
5-
"command.startServer": "Lua: (debug) Start Language Server",
6-
"command.stopServer": "Lua: (debug) Stop Language Server",
5+
"command.startServer": "Lua: Restart Language Server",
6+
"command.stopServer": "Lua: Stop Language Server",
77
"config.addonManager.enable": "Whether the addon manager is enabled or not.",
88
"config.addonManager.repositoryBranch": "Specifies the git branch used by the addon manager.",
99
"config.addonManager.repositoryPath": "Specifies the git path used by the addon manager.",

package.nls.pt-br.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"command.addon_manager.open": "Lua: Open Addon Manager ...",
33
"command.exportDocument": "Lua: Export Document ...",
44
"command.reloadFFIMeta": "Lua: Reload luajit ffi meta",
5-
"command.startServer": "Lua: (debug) Start Language Server",
6-
"command.stopServer": "Lua: (debug) Stop Language Server",
5+
"command.startServer": "Lua: Restart Language Server",
6+
"command.stopServer": "Lua: Stop Language Server",
77
"config.addonManager.enable": "Whether the addon manager is enabled or not.",
88
"config.addonManager.repositoryBranch": "Specifies the git branch used by the addon manager.",
99
"config.addonManager.repositoryPath": "Specifies the git path used by the addon manager.",

package.nls.zh-cn.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"command.addon_manager.open": "Lua: 打开插件管理器...",
33
"command.exportDocument": "Lua: 导出文档...",
44
"command.reloadFFIMeta": "Lua: 重新生成luajit的FFI模块C语言元数据",
5-
"command.startServer": "Lua: (debug) 启动服务器",
6-
"command.stopServer": "Lua: (debug) 停止服务器",
5+
"command.startServer": "Lua: 重启语言服务器",
6+
"command.stopServer": "Lua: 停止语言服务器",
77
"config.addonManager.enable": "是否启用扩展的附加插件管理器(Addon Manager)",
88
"config.addonManager.repositoryBranch": "指定插件管理器(Addon Manager)使用的git仓库分支",
99
"config.addonManager.repositoryPath": "指定插件管理器(Addon Manager)使用的git仓库路径",

package/build.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local json = require 'json-beautify'
22

3-
local VERSION = "3.13.5"
3+
local VERSION = "3.13.6"
44

55
local fsu = require 'fs-utility'
66
local package = json.decode(fsu.loadFile(ROOT / 'package.json'))

0 commit comments

Comments
 (0)