Skip to content

Commit eb92f02

Browse files
committed
update
1 parent bbff315 commit eb92f02

File tree

4 files changed

+29
-18
lines changed

4 files changed

+29
-18
lines changed

CHANGELOG.md

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

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

5+
## [0.9.26] - 2025-7-27
6+
### 🐛 Fixed
7+
- **Fix create an empty directory**: Fixed an issue where the language server would create an empty directory.
8+
### 🔧 Changed
9+
- **Rust Edition 2024**: The language server is now built with Rust Edition 2024, which brings various performance and stability improvements.
10+
511
## [0.9.25] - 2025-7-25
612
### 🔧 Changed
713
- **Refactor generic function inference**: Lambda function parameters now use deferred matching, allowing generic types to be inferred from other parameters first. For example:

CHANGELOG_CN.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,45 @@
11
# 🚀 Change Log
22

3+
## [0.9.26] - 2025-7-27
4+
### 🐛 问题修复
5+
- **修复创建空目录问题**:修复了语言服务器会创建空目录的问题。
6+
### 🔧 变更
7+
- **Rust 2024 版本**:语言服务器现已使用 Rust Edition 2024 构建,带来多项性能和稳定性提升。
8+
39
## [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:
10+
### 🔧 变更
11+
- **重构泛型函数推断**Lambda 函数参数现在采用延迟匹配,允许泛型类型优先从其他参数推断。例如:
612
```lua
713
---@generic T
814
---@param f1 fun(...: T...): any
915
---@param ... T...
1016
function invoke(f1, ...)
11-
17+
1218
end
1319

14-
invoke(function(a, b, c) -- infer as: integer, integer, integer
15-
print(a, b, c)
20+
invoke(function(a, b, c) -- 推断为:integer, integer, integer
21+
print(a, b, c)
1622
end, 1, 2, 3)
1723
```
1824

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.
25+
- **泛型类型衰减**:现在,泛型类型如果匹配到 integerstringfloat boolean 常量,将直接转换为对应的基础类型。
2026

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:
27+
### 新增
28+
- **默认使用 Mimalloc**Mimalloc 现为默认内存分配器,提升了性能和内存管理,启动性能提升约 50%
29+
- **Lua 5.5 语法支持**:更完整地支持 Lua 5.5 语法,包括 `global` 声明、`table.create` 以及新的属性语法。例如:
2430
```lua
2531
local <const> a, b, c = 1, 2, 3
2632
global <const> d, e, f
2733
```
28-
Also supports immutability checks for iterator variables in for loop statements.
29-
34+
同时支持 for 循环语句中迭代变量的不可变性检查。
3035

31-
- **Doc Cli Modification**: Improved the documentation CLI to better handle various edge cases and provide more accurate suggestions.
36+
- **文档 CLI 优化**:改进了文档 CLI,更好地处理各种边界情况并提供更准确的建议。
3237

33-
### 🐛 Fixed
38+
### 🐛 问题修复
3439

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.
40+
- **修复加载顺序问题**:修复了文件加载顺序可能导致类型推断错误的问题。
41+
- **修复 Unpack 推断**:修复了解包表时的推断问题。
42+
- **修复 @param 重命名**:修复了函数参数重命名时 @param 注释未同步的问题。
3843

3944

4045
## [0.9.24] - 2025-7-11

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.1",
4+
newLanguageServerVersion: "0.10.0",
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.25",
5+
"version": "0.9.26",
66
"icon": "res/icon.png",
77
"publisher": "tangzx",
88
"engines": {

0 commit comments

Comments
 (0)