|
3 | 3 | ## Unreleased
|
4 | 4 | <!-- Add all new changes here. They will be moved under a version at release -->
|
5 | 5 |
|
| 6 | +## 3.13.1 |
| 7 | +`2024-11-13` |
| 8 | +* `FIX` Incorrect type check in some case |
| 9 | + |
| 10 | +## 3.13.0 |
| 11 | +`2024-11-13` |
| 12 | +* `NEW` Setting: `Lua.type.inferTableSize`: A Small Table array can be infered |
| 13 | +* `NEW` Add custom repository support for addonManager. New configuration setting: `Lua.addonManager.repositoryBranch` and `Lua.addonManager.repositoryPath` |
| 14 | +* `NEW` Infer function parameter types when the function is used as an callback argument and that argument has a `fun()` annotation. Enable with `Lua.type.inferParamType` setting. [#2695](https://github.com/LuaLS/lua-language-server/pull/2695) |
| 15 | + ```lua |
| 16 | + ---@param callback fun(a: integer) |
| 17 | + function register(callback) end |
| 18 | + |
| 19 | + local function callback(a) end --> a: integer |
| 20 | + register(callback) |
| 21 | + ``` |
| 22 | +* `CHG` Basic types allow contravariance |
| 23 | + ```lua |
| 24 | + ---@class int32: integer |
| 25 | + |
| 26 | + ---@type integer |
| 27 | + local n |
| 28 | + |
| 29 | + ---@type int32 |
| 30 | + local a = n |
| 31 | + ``` |
| 32 | +* `FIX` Improve type narrow with **literal alias type** during completion and signature help |
| 33 | + |
| 34 | +## 3.12.0 |
| 35 | +`2024-10-30` |
| 36 | +* `NEW` Support importing `enum` through class name suffix matching in quick fixes, allowing the import of `enum` from `table.table.enum; return table`. |
| 37 | +* `NEW` Support limited multiline annotations |
| 38 | + ```lua |
| 39 | + ---@type { |
| 40 | + --- x: number, |
| 41 | + --- y: number, |
| 42 | + --- z: number, |
| 43 | + ---} |
| 44 | + local point --> local point: { x: number, y: number, z: number } |
| 45 | + ``` |
| 46 | +* `FIX` A regression related to type narrow and generic param introduced since `v3.10.1` |
| 47 | +* `FIX` Parse storagePath to improve reliability of resolving ${addons} placeholder |
| 48 | +* `FIX` Reference should also look in tablefield |
| 49 | +* `FIX` Determine that the index of `{...}` is an integer when iterating |
| 50 | + |
| 51 | +## 3.11.1 |
| 52 | +`2024-10-9` |
| 53 | +* `FIX` Fixed an issue preventing to set the locale to Japanese |
| 54 | +* `FIX` Preserve newlines between function comment and @see |
| 55 | +* `FIX` Accept storagePath option from client to resolve addon directory not found |
| 56 | + |
6 | 57 | ## 3.11.0
|
| 58 | +`2024-9-30` |
7 | 59 | * `NEW` Added support for Japanese locale
|
8 | 60 | * `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 | 61 | * `NEW` Types with literal fields can be narrowed.
|
|
0 commit comments