Skip to content

Commit 7c249c2

Browse files
committed
Merge remote-tracking branch 'EmmyLuaLs/main' into attribute
2 parents f193a60 + b3b55ee commit 7c249c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1705
-740
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,30 @@
3535
---@field [1] string # 此时在提示和补全中会显示为 `b`
3636
```
3737

38+
## [0.16.0] - 2025-10-17
39+
### ✨ Added
40+
- **Support `workspace/diagnostic`**: Added support for the `workspace/diagnostic` request, allowing clients to fetch diagnostics for the entire workspace.
41+
- **Support global function overload**: You can now define overloads for global functions in `@meta` files. For example:
42+
```lua
43+
---@meta
44+
45+
46+
function overload(a: integer): integer
47+
end
48+
49+
function overload(a: string): string
50+
end
51+
```
52+
53+
### 🔧 Changed
54+
- **Update lsp-server dependency**: Updated the `lsp-server` dependency to version 0.7.9 to leverage the latest features and improvements.
55+
- **Migrate `lsp-types` to `emmy-lsp-types`**: Migrated from using the `lsp-types` crate to the `emmy-lsp-types` crate, which is a fork tailored for EmmyLua Analyzer Rust. This change allows for better customization and alignment with the project's specific needs.
56+
57+
### 🐛 Fixed
58+
- **Fix deadlock issue**: Resolved a deadlock issue that could occur during certain operations, improving the stability of the language server.
59+
- **Fix diagnostic reporting**: Fixed an issue where some diagnostics never cleaned up after files were change information.
60+
- **Fix overload description issue**: Fixed an issue where descriptions for overloaded functions were not displayed correctly in completion and hover tooltips.
61+
3862
## [0.15.0] - 2025-10-10
3963

4064
### ✨ Added

Cargo.lock

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

Cargo.toml

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

88
[workspace.dependencies]
99
# local
10-
emmylua_code_analysis = { path = "crates/emmylua_code_analysis", version = "0.15.0" }
11-
emmylua_parser = { path = "crates/emmylua_parser", version = "0.17.0" }
12-
emmylua_parser_desc = { path = "crates/emmylua_parser_desc", version = "0.17.0" }
10+
emmylua_code_analysis = { path = "crates/emmylua_code_analysis", version = "0.16.0" }
11+
emmylua_parser = { path = "crates/emmylua_parser", version = "0.18.0" }
12+
emmylua_parser_desc = { path = "crates/emmylua_parser_desc", version = "0.18.0" }
1313
emmylua_diagnostic_macro = { path = "crates/emmylua_diagnostic_macro", version = "0.5.0" }
1414

1515
# external
16-
lsp-server = "0.7.7"
16+
lsp-server = "0.7.9"
1717
tokio = { version = "1.46", features = ["full"] }
1818
serde = { version = "1.0.219", features = ["derive"] }
1919
serde_json = "1.0.141"
2020
rowan = { version = "0.16.1" }
2121
notify = { version = "8.1.0", features = ["serde"] }
22-
lsp-types = { version = "0.97.0", features = ["proposed"]}
22+
lsp_types = { version = "0.1.0", package = "emmy_lsp_types" }
2323
schemars = "1.0.2"
2424
regex = "1"
2525
internment = { version = "0.8.6", features = ["arc"] }

crates/emmylua_check/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "emmylua_check"
3-
version = "0.15.0"
3+
version = "0.16.0"
44
edition = "2024"
55
authors = ["CppCXY"]
66
description = "A command-line tool for checking lua code."
@@ -18,7 +18,7 @@ emmylua_parser.workspace = true
1818
# external
1919
serde.workspace = true
2020
serde_json.workspace = true
21-
lsp-types.workspace = true
21+
lsp_types.workspace = true
2222
log.workspace = true
2323
fern.workspace = true
2424
rowan.workspace = true

0 commit comments

Comments
 (0)