Skip to content

Commit 48ee7d7

Browse files
committed
update version
1 parent b74d120 commit 48ee7d7

9 files changed

Lines changed: 39 additions & 15 deletions

File tree

CHANGELOG.md

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

33
*All notable changes to the EmmyLua Analyzer Rust project will be documented in this file.*
44

5+
## [0.22.0] - 2026-4-1
6+
7+
### ✨ Added
8+
9+
- **Support for `@return_overload` annotation**: Added support for `@return_overload` , which allow you define function return like pcall
10+
```lua
11+
---@return_overload true, string
12+
---@return_overload false, integer
13+
local function func()
14+
end
15+
```
16+
then the two variables in `local ok, res = func()` will be correctly inferred as `ok: true, res: string` and `ok: false, res: integer` respectively.
17+
18+
- **Ready for New Formatter**: The language server plans to introduce a new formatter in version 0.23.0. This formatter can currently be experienced in CLI mode. You can download the latest formatter `luafmt` from the release page. For related documentation, please refer to [EmmyLua Formatter Documentation Index](docs/emmylua_formatter/README_EN.md). This formatting tool draws inspiration from Prettier while maintaining more style options from EmmyLua CodeStyle. After replacing the original formatter, emmylua_ls will no longer depend on high-version C++ compilers, and formatting results will be more stable. However, there are still some edge cases with suboptimal formatting, which will be continuously fixed in subsequent versions.
19+
20+
### 🔧 Changed
21+
22+
- **Update luars to 0.17.0**: Updated the `luars` dependency to version 0.17.0.
23+
- **Improve performance**: Properly improved performance through a series of measures
24+
25+
### 🐛 Fixed
26+
27+
Fix some bugs
28+
529
## [0.21.0] - 2026-3-6
630

731
### ✨ Added

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ members = [
77

88
[workspace.dependencies]
99
# local
10-
emmylua_code_analysis = { path = "crates/emmylua_code_analysis", version = "0.21.0" }
11-
emmylua_parser = { path = "crates/emmylua_parser", version = "0.24.0" }
12-
emmylua_parser_desc = { path = "crates/emmylua_parser_desc", version = "0.24.0" }
10+
emmylua_code_analysis = { path = "crates/emmylua_code_analysis", version = "0.22.0" }
11+
emmylua_parser = { path = "crates/emmylua_parser", version = "0.25.0" }
12+
emmylua_parser_desc = { path = "crates/emmylua_parser_desc", version = "0.25.0" }
1313
emmylua_diagnostic_macro = { path = "crates/emmylua_diagnostic_macro", version = "0.5.0" }
1414
schema_to_emmylua = { path = "crates/schema_to_emmylua", version = "0.1.0" }
1515

crates/emmylua_check/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emmylua_check"
3-
version = "0.21.0"
3+
version = "0.22.0"
44
edition = "2024"
55
authors = ["CppCXY"]
66
description = "A command-line tool for checking lua code."

crates/emmylua_code_analysis/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emmylua_code_analysis"
3-
version = "0.21.0"
3+
version = "0.22.0"
44
edition = "2024"
55
authors = ["CppCXY"]
66
description = "A library for analyzing lua code."

crates/emmylua_doc_cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emmylua_doc_cli"
3-
version = "0.21.0"
3+
version = "0.22.0"
44
edition = "2024"
55
authors = ["CppCXY"]
66
description = "A command-line tool for generating lua documentation."

crates/emmylua_ls/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emmylua_ls"
3-
version = "0.21.0"
3+
version = "0.22.0"
44
edition = "2024"
55
authors = ["CppCXY"]
66
description = "A language server for emmylua."

crates/emmylua_parser/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emmylua_parser"
3-
version = "0.24.0"
3+
version = "0.25.0"
44
edition = "2024"
55
authors = ["CppCXY"]
66
description = "A parser for EmmyLua and luals"

crates/emmylua_parser_desc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emmylua_parser_desc"
3-
version = "0.24.0"
3+
version = "0.25.0"
44
edition = "2024"
55
authors = ["CppCXY", "taminomara"]
66
description = "A parser for markup within Lua comments"

0 commit comments

Comments
 (0)