Skip to content

Commit 0eb7432

Browse files
committed
doc: update changelog
1 parent bf87424 commit 0eb7432

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
* `FIX` Improve type narrow with **literal alias type** during completion and signature help
66
* `NEW` Setting: `Lua.type.inferTableSize`: A Small Table array can be infered
77
* `NEW` Add custom repository support for addonManager. New configuration setting: `Lua.addonManager.repositoryBranch` and `Lua.addonManager.repositoryPath`
8+
* `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)
9+
```lua
10+
---@param callback fun(a: integer)
11+
function register(callback) end
12+
13+
local function callback(a) end --> a: integer
14+
register(callback)
15+
```
816

917
## 3.12.0
1018
`2024-10-30`

0 commit comments

Comments
 (0)