Skip to content

Commit

Permalink
3.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Nov 13, 2024
1 parent a4ea4b0 commit 49b04af
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,30 @@
* `NEW` Setting: `Lua.type.inferTableSize`: A Small Table array can be infered
* `NEW` Add custom repository support for addonManager. New configuration setting: `Lua.addonManager.repositoryBranch` and `Lua.addonManager.repositoryPath`

## 3.13.0
`2024-11-13`
* `NEW` Setting: `Lua.type.inferTableSize`: A Small Table array can be infered
* `NEW` Add custom repository support for addonManager. New configuration setting: `Lua.addonManager.repositoryBranch` and `Lua.addonManager.repositoryPath`
* `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)
```lua
---@param callback fun(a: integer)
function register(callback) end

local function callback(a) end --> a: integer
register(callback)
```
* `CHG` Basic types allow contravariance
```lua
---@class int32: integer

---@type integer
local n

---@type int32
local a = n
```
* `FIX` Improve type narrow with **literal alias type** during completion and signature help

## 3.12.0
`2024-10-30`
* `NEW` Support importing `enum` through class name suffix matching in quick fixes, allowing the import of `enum` from `table.table.enum; return table`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3427,5 +3427,5 @@
"sponsor": {
"url": "https://github.com/LuaLS/lua-language-server/issues/484"
},
"version": "3.12.0"
"version": "3.13.0"
}
2 changes: 1 addition & 1 deletion package/build.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local json = require 'json-beautify'

local VERSION = "3.12.0"
local VERSION = "3.13.0"

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

0 comments on commit 49b04af

Please sign in to comment.