|
3 | 3 | ## Unreleased
|
4 | 4 | <!-- Add all new changes here. They will be moved under a version at release -->
|
5 | 5 |
|
| 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 | + |
6 | 41 | ## 3.13.5
|
7 | 42 | `2024-12-20`
|
8 | 43 | * `NEW` Setting: `Lua.hint.awaitPropagate`: When enabled, --@async propagates to the caller.
|
|
0 commit comments