Skip to content

Commit bbff315

Browse files
committed
update
1 parent cda727e commit bbff315

File tree

5 files changed

+320
-388
lines changed

5 files changed

+320
-388
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,42 @@
22

33
[中文Log](CHANGELOG_CN.md)
44

5+
## [0.9.25] - 2025-7-25
6+
### 🔧 Changed
7+
- **Refactor generic function inference**: Lambda function parameters now use deferred matching, allowing generic types to be inferred from other parameters first. For example:
8+
```lua
9+
---@generic T
10+
---@param f1 fun(...: T...): any
11+
---@param ... T...
12+
function invoke(f1, ...)
13+
14+
end
15+
16+
invoke(function(a, b, c) -- infer as: integer, integer, integer
17+
print(a, b, c)
18+
end, 1, 2, 3)
19+
```
20+
21+
- **Generic Type Decay**: Now, generic types that match constants of integer, string, float, or boolean will be directly converted to their corresponding general types.
22+
23+
### ✨ Added
24+
- **Use Mimalloc**: Mimalloc is now the default memory allocator, improving performance and memory management. Startup performance is increased by about 50%.
25+
- **Lua 5.5 Syntax Support**: More complete support for Lua 5.5 syntax, including `global` declarations, `table.create`, and the new attribute syntax. For example:
26+
```lua
27+
local <const> a, b, c = 1, 2, 3
28+
global <const> d, e, f
29+
```
30+
Also supports immutability checks for iterator variables in for loop statements.
31+
32+
33+
- **Doc Cli Modification**: Improved the documentation CLI to better handle various edge cases and provide more accurate suggestions.
34+
35+
### 🐛 Fixed
36+
37+
- **Fix load order**: Fixed an issue where the order of loading files could lead to incorrect type inference.
38+
- **Fix Unpack infer**: Fixed an issue where unpacking a table in a table.
39+
- **Fix rename in @param**: Fixed an issue where renaming a parameter in a function param.
40+
541
## [0.9.24] - 2025-7-11
642
### 🔧 Changed
743

CHANGELOG_CN.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# 🚀 Change Log
22

3+
## [0.9.25] - 2025-7-25
4+
### 🔧 Changed
5+
- **Refactor generic function inference**: Lambda function parameters now use deferred matching, allowing generic types to be inferred from other parameters first. For example:
6+
```lua
7+
---@generic T
8+
---@param f1 fun(...: T...): any
9+
---@param ... T...
10+
function invoke(f1, ...)
11+
12+
end
13+
14+
invoke(function(a, b, c) -- infer as: integer, integer, integer
15+
print(a, b, c)
16+
end, 1, 2, 3)
17+
```
18+
19+
- **Generic Type Decay**: Now, generic types that match constants of integer, string, float, or boolean will be directly converted to their corresponding general types.
20+
21+
### ✨ Added
22+
- **Use Mimalloc**: Mimalloc is now the default memory allocator, improving performance and memory management. Startup performance is increased by about 50%.
23+
- **Lua 5.5 Syntax Support**: More complete support for Lua 5.5 syntax, including `global` declarations, `table.create`, and the new attribute syntax. For example:
24+
```lua
25+
local <const> a, b, c = 1, 2, 3
26+
global <const> d, e, f
27+
```
28+
Also supports immutability checks for iterator variables in for loop statements.
29+
30+
31+
- **Doc Cli Modification**: Improved the documentation CLI to better handle various edge cases and provide more accurate suggestions.
32+
33+
### 🐛 Fixed
34+
35+
- **Fix load order**: Fixed an issue where the order of loading files could lead to incorrect type inference.
36+
- **Fix Unpack infer**: Fixed an issue where unpacking a table in a table.
37+
- **Fix rename in @param**: Fixed an issue where renaming a parameter in a function param.
38+
39+
340
## [0.9.24] - 2025-7-11
441
### 🔧 改进优化
542

build/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exports.default = {
22
emmyDebuggerVersion: '1.8.6',
33
emmyDebuggerUrl: 'https://github.com/EmmyLua/EmmyLuaDebugger/releases/download',
4-
newLanguageServerVersion: "0.9.0",
4+
newLanguageServerVersion: "0.9.1",
55
newLanguageServerUrl: "https://github.com/CppCXY/emmylua-analyzer-rust/releases/download"
66
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "emmylua",
33
"displayName": "EmmyLua",
44
"description": "EmmyLua for vscode",
5-
"version": "0.9.24",
5+
"version": "0.9.25",
66
"icon": "res/icon.png",
77
"publisher": "tangzx",
88
"engines": {

0 commit comments

Comments
 (0)