Skip to content

Commit 49b04af

Browse files
committedNov 13, 2024·
3.13.0
1 parent a4ea4b0 commit 49b04af

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed
 

‎changelog.md

+24
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,30 @@
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`
88

9+
## 3.13.0
10+
`2024-11-13`
11+
* `NEW` Setting: `Lua.type.inferTableSize`: A Small Table array can be infered
12+
* `NEW` Add custom repository support for addonManager. New configuration setting: `Lua.addonManager.repositoryBranch` and `Lua.addonManager.repositoryPath`
13+
* `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)
14+
```lua
15+
---@param callback fun(a: integer)
16+
function register(callback) end
17+
18+
local function callback(a) end --> a: integer
19+
register(callback)
20+
```
21+
* `CHG` Basic types allow contravariance
22+
```lua
23+
---@class int32: integer
24+
25+
---@type integer
26+
local n
27+
28+
---@type int32
29+
local a = n
30+
```
31+
* `FIX` Improve type narrow with **literal alias type** during completion and signature help
32+
933
## 3.12.0
1034
`2024-10-30`
1135
* `NEW` Support importing `enum` through class name suffix matching in quick fixes, allowing the import of `enum` from `table.table.enum; return table`.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3427,5 +3427,5 @@
34273427
"sponsor": {
34283428
"url": "https://github.com/LuaLS/lua-language-server/issues/484"
34293429
},
3430-
"version": "3.12.0"
3430+
"version": "3.13.0"
34313431
}

‎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.12.0"
3+
local VERSION = "3.13.0"
44

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

0 commit comments

Comments
 (0)
Please sign in to comment.