Skip to content

Commit c24bc8b

Browse files
committed
update
1 parent 41028ab commit c24bc8b

File tree

5 files changed

+49
-3
lines changed

5 files changed

+49
-3
lines changed

CHANGELOG.md

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

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

5+
## [0.9.30] - 2025-10-10
6+
7+
### ✨ Added
8+
- **Use Clippy as linter**: core codebase now uses Clippy as the linter, improving code quality and consistency.
9+
- **Support `textdocument/diagnostic`**: Added support for the `textDocument/diagnostic` request, allowing clients to fetch diagnostics for a specific document.
10+
- **Support annotation `@readonly`**: You can now use the `@readonly` annotation to mark fields as read-only. For example:
11+
```lua
12+
---@readonly
13+
local myVar = 42
14+
```
15+
- **Add check for `global in non module`**: Added a new diagnostic to check for global variable declarations in non-module scope. This helps detect unintended global variable declarations.
16+
17+
### 🔧 Changed
18+
- **Optimize semantic token**: Optimized semantic token handling for delimiter symbols.
19+
20+
### 🐛 Fixed
21+
- **Fix generic pattern matching issue**: Fixed an issue where generic pattern matching aliases could lead to incorrect type inference.
22+
523
## [0.9.29] - 2025-9-19
624

725
### 🔧 Changed

CHANGELOG_CN.md

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

3+
## [0.9.30] - 2025-10-10
4+
5+
### ✨ 新增
6+
- **使用 Clippy 作为代码检查工具**:核心代码库现已采用 Clippy 进行代码检查,提升了代码质量和一致性。
7+
- **支持 `textDocument/diagnostic`**:新增对 `textDocument/diagnostic` 请求的支持,客户端可获取指定文档的诊断信息。
8+
- **支持注解 `@readonly`**:现在可以使用 `@readonly` 注解将字段标记为只读。例如:
9+
```lua
10+
---@readonly
11+
local myVar = 42
12+
```
13+
- **新增“非模块下全局变量”检查**:新增诊断,检测在非模块作用域下声明的全局变量,帮助发现意外的全局变量声明。
14+
15+
### 🔧 变更
16+
- **优化语义标记处理**:优化了分隔符符号的语义标记处理。
17+
18+
### 🐛 修复
19+
- **修复泛型模式匹配问题**:修复了泛型模式匹配别名导致类型推断错误的问题。
20+
321
## [0.9.29] - 2025-9-19
422

523
### 🔧 变更

build/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"emmyDebuggerVersion": "1.8.7",
33
"emmyDebuggerUrl": "https://github.com/EmmyLua/EmmyLuaDebugger/releases/download",
4-
"newLanguageServerVersion": "0.14.0",
4+
"newLanguageServerVersion": "0.15.0",
55
"newLanguageServerUrl": "https://github.com/CppCXY/emmylua-analyzer-rust/releases/download",
66
"newLanguageServerSchemaUrl": "https://raw.githubusercontent.com/EmmyLuaLs/emmylua-analyzer-rust/refs/tags/{{tag}}/crates/emmylua_code_analysis/resources/schema.json"
77
}

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.29",
5+
"version": "0.9.30",
66
"icon": "res/icon.png",
77
"publisher": "tangzx",
88
"engines": {

syntaxes/schema.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,16 @@
425425
"description": "preferred-local-alias",
426426
"type": "string",
427427
"const": "preferred-local-alias"
428+
},
429+
{
430+
"description": "readonly",
431+
"type": "string",
432+
"const": "read-only"
433+
},
434+
{
435+
"description": "Global variable defined in non-module scope",
436+
"type": "string",
437+
"const": "global-in-non-module"
428438
}
429439
]
430440
},
@@ -1148,4 +1158,4 @@
11481158
]
11491159
}
11501160
}
1151-
}
1161+
}

0 commit comments

Comments
 (0)