|
3 | 3 | ## Unreleased |
4 | 4 | <!-- Add all new changes here. They will be moved under a version at release --> |
5 | 5 |
|
| 6 | +## 3.13.9 |
| 7 | +`2025-3-13` |
| 8 | +* `CHG` remove the limit for analyzing the literal table |
| 9 | + |
| 10 | +## 3.13.8 |
| 11 | +`2025-3-12` |
| 12 | +* `CHG` when analyzing the literal table, only the first 100 items are analyzed at most |
| 13 | +* `CHG` when checking type matching for union types, only the first 100 items are checked at most |
| 14 | +* `FIX` Update `--help` message. |
| 15 | +* `FIX` --check now respects ignoreDir setting |
| 16 | +* `FIX` incorrect argument skip pattern for `--check_out_path=`, which incorrectly skips the next argument |
| 17 | + |
| 18 | +## 3.13.7 |
| 19 | +`2025-3-10` |
| 20 | +* `NEW` CLI: added `--help`. |
| 21 | +* `CHG` default path for `--doc_out_path` is the current directory |
| 22 | +* `FIX` incorrect argument skip pattern for `--check_out_path=`, which incorrectly skips the next argument |
| 23 | +* `FIX` incorrect error message for `--doc_update`. |
| 24 | +* `FIX` reimplement section `luals.config` in file doc.json |
| 25 | +* `FIX` incorrect file names in file doc.json |
| 26 | +* `FIX` remove extra `./` path prefix in the check report when using `--check=.` |
| 27 | +* `FIX` Narrowing of types with literal fields: [#3056](https://github.com/LuaLS/lua-language-server/issues/3056), [#3089](https://github.com/LuaLS/lua-language-server/issues/3089) |
| 28 | +* `FIX` correct lua version of `math.ult` and `math.type` |
| 29 | +* `FIX` incorrect links for `pattern` in `string` methods |
| 30 | +* `FIX` fix type annotations for bit module |
| 31 | +* `FIX` Another regression related to type narrow and generic param introduced since `v3.10.1` [#3087](https://github.com/LuaLS/lua-language-server/issues/3087) |
| 32 | + |
| 33 | +## 3.13.6 |
| 34 | +`2025-2-6` |
| 35 | +* `NEW` `---@class` supports attribute `partial`, which will not check missing inherited fields [#3023](https://github.com/LuaLS/lua-language-server/issues/3023) |
| 36 | + ```lua |
| 37 | + ---@class Config |
| 38 | + ---@field a number |
| 39 | + |
| 40 | + ---@class (partial) Config.P: Config |
| 41 | + ---@field b number |
| 42 | + |
| 43 | + ---@type Config.P[] |
| 44 | + local cfgs = {} |
| 45 | + cfgs[1] = { b = 1 } -- no warning |
| 46 | + cfgs[2] = {} -- only warns missing `b` |
| 47 | + ``` |
| 48 | + This enables the previous missing field check behavior before [#2970](https://github.com/LuaLS/lua-language-server/issues/2970) |
| 49 | +* `NEW` Added variable substitution support for vscode's `${workspaceFolder:x}` when resolving path placeholders [#2987](https://github.com/LuaLS/lua-language-server/issues/2987) |
| 50 | +* `NEW` Added `--check_format=json|pretty` for use with `--check` to output diagnostics in a human readable format. |
| 51 | +* `NEW` Test CLI: `--name=<testname>` `-n=<testname>`: run specify unit test |
| 52 | +* `CHG` Generic pattern now supports definition after capture and optional, union, array [#3014](https://github.com/LuaLS/lua-language-server/issues/3014) [#3031](https://github.com/LuaLS/lua-language-server/pull/3031) |
| 53 | + ```lua |
| 54 | + ---@generic T |
| 55 | + ---@param t `T`.Cat? |
| 56 | + ---@return T? |
| 57 | + local function f(t) end |
| 58 | + |
| 59 | + local t = f('Smile') --> t is `(Smile.Cat)?` |
| 60 | + ``` |
| 61 | +* `FIX` Fixed the error that the configuration file pointed to by the `--configpath` option was not read and loaded. |
| 62 | +* `FIX` Don't truncate any output when running in `--doc` mode [#3049](https://github.com/LuaLS/lua-language-server/issues/3049) |
| 63 | +* `FIX` Generic return can be optional. |
| 64 | +* `FIX` Fixed the comment calculating in docs `---@param a string?Comment` - now its `Comment` instead of `omment` [#3028](https://github.com/LuaLS/lua-language-server/pull/3028) |
| 65 | +* `FIX` Fixed cannot bind variables using tail comment `@class` [#2673](https://github.com/LuaLS/lua-language-server/issues/2673) |
| 66 | +* `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) |
| 67 | + |
| 68 | +## 3.13.5 |
| 69 | +`2024-12-20` |
| 70 | +* `NEW` Setting: `Lua.hint.awaitPropagate`: When enabled, `--@async` propagates to the caller. |
| 71 | +* `CHG` Add server version information to `initialize` response [#2996](https://github.com/LuaLS/lua-language-server/pull/2996) |
| 72 | +* `CHG` If the `---@field` of the same name has a type of `fun`, the `duplicate-doc-field` check will not be performed. |
| 73 | +* `FIX` Incorrect infer for function array annotation on tables [#2367](https://github.com/LuaLS/lua-language-server/issues/2367) |
| 74 | + |
6 | 75 | ## 3.13.4 |
7 | 76 | `2024-12-13` |
8 | 77 | * `CHG` Can adjust the level of detail of Hover (VSCode) |
|
0 commit comments