Skip to content

Commit 919bd60

Browse files
committed
0.9.21
1 parent 4e51ccc commit 919bd60

File tree

4 files changed

+81
-2
lines changed

4 files changed

+81
-2
lines changed

CHANGELOG.md

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

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

5+
# 0.9.21
6+
7+
`NEW` Implement `std.Unpack` type for better type inference of the `unpack` function, and `std.Rawget` type for better type inference of the `rawget` function
8+
9+
`NEW` Support `generator` implementation similar to `luals`
10+
11+
`FIX` Fix issue where type narrowing is lost in nested closures
12+
13+
`NEW` Improved generic parameter inference for lambda functions, now better inferring parameter types for lambda functions
14+
15+
`CHG` Changed `math.huge` to number type
16+
17+
`FIX` Optimized inference of variadic generic return values, now usable for asynchronous library return value inference:
18+
```lua
19+
--- @generic T, R
20+
--- @param argc integer
21+
--- @param func fun(...:T..., cb: fun(...:R...))
22+
--- @return async fun(...:T...):R...
23+
local function wrap(argc, func) end
24+
25+
--- @param a string
26+
--- @param b string
27+
--- @param callback fun(out: string)
28+
local function system(a, b, callback) end
29+
30+
local wrapped = wrap(3, system)
31+
```
32+
33+
`FIX` Optimized rendering of certain type hints
34+
35+
`NEW` Added documentation hints for modules and types in code completion
36+
37+
`NEW` Added type checking for intersection types
38+
39+
`NEW` Support for generic constraint checking, string template parameter type checking and code completion
40+
41+
`FIX` Fix performance issue where type checking drastically slows down when large Lua tables are present in the project, causing the entire project to become unresponsive
42+
43+
544
# 0.9.20
645

746
`FIX` Fix a crash issue

CHANGELOG_CN.md

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

3+
# 0.9.21
4+
# 0.9.21
5+
6+
`NEW` 实现 `std.Unpack` 类型以提升 `unpack` 函数的类型推断,以及 `std.Rawget` 类型以提升 `rawget` 函数的类型推断
7+
8+
`NEW` 支持类似 `luals``generator` 实现
9+
10+
`FIX` 修复在嵌套闭包中丢失类型窄化的问题
11+
12+
`NEW` 改进了 lambda 函数的泛型参数推断,现在能更好地推断 lambda 函数的参数类型
13+
14+
`CHG``math.huge` 改为数字类型
15+
16+
`FIX` 优化了可变泛型返回值的推断,现在可用于异步库返回值推断:
17+
```lua
18+
--- @generic T, R
19+
--- @param argc integer
20+
--- @param func fun(...:T..., cb: fun(...:R...))
21+
--- @return async fun(...:T...):R...
22+
local function wrap(argc, func) end
23+
24+
--- @param a string
25+
--- @param b string
26+
--- @param callback fun(out: string)
27+
local function system(a, b, callback) end
28+
29+
local wrapped = wrap(3, system)
30+
```
31+
32+
`FIX` 优化了某些类型提示的渲染
33+
34+
`NEW` 在代码补全中添加了模块和类型的文档提示
35+
36+
`NEW` 添加了交集类型的类型检查
37+
38+
`NEW` 支持泛型约束检查、字符串模板参数类型检查和代码补全
39+
40+
`FIX` 修复当项目中存在大型 Lua 表时类型检查严重降低性能的问题,之前这会导致整个项目变得无响应
41+
42+
343
# 0.9.20
444

545
`FIX` 修复一个崩溃问题

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.5',
33
emmyDebuggerUrl: 'https://github.com/EmmyLua/EmmyLuaDebugger/releases/download',
4-
newLanguageServerVersion: "0.7.3",
4+
newLanguageServerVersion: "0.8.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.20",
5+
"version": "0.9.21",
66
"icon": "res/icon.png",
77
"publisher": "tangzx",
88
"engines": {

0 commit comments

Comments
 (0)