You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,58 @@
2
2
3
3
*All notable changes to the EmmyLua Analyzer Rust project will be documented in this file.*
4
4
5
+
## [0.20.0] - 2026-1-30
6
+
### ✨ Added
7
+
-**Support .emmyrc.lua configuration file**: The language server and emmylua_check now support loading configuration from `.emmyrc.lua` in addition to `.emmyrc.json` and `.luarc.json`. Lua configuration is parsed using the [luars](https://github.com/CppCXY/lua-rs) library. A basic config looks like:
8
+
```lua
9
+
localdiagnostics= {
10
+
disable= { "undefined-global" },
11
+
}
12
+
13
+
return {
14
+
diagnostics=diagnostics,
15
+
}
16
+
```
17
+
You can use standard libraries such as os, table, utf8, string to write more complex configuration logic. `print` can be used for debugging; its output is redirected to the language server log.
18
+
19
+
Note: The current `.emmyrc.lua` does not have dedicated code completions; this will be added in a future release.
20
+
Note2: The `luars` project was developed by me with AI assistance. It is an almost-complete Lua 5.5 implementation but is still experimental and contains many bugs. Use with caution.
21
+
22
+
### 🔧 Changed
23
+
-**Enhance workspace.library**: `workspace.library` now supports per-entry ignore configuration, for example:
24
+
```json
25
+
{
26
+
"workspace": {
27
+
"library": [
28
+
{
29
+
"path": "/path/to/lib1",
30
+
"ignoreGlobs": [ "**/test/**" ],
31
+
"ignoreDir": ["docs"]
32
+
}
33
+
]
34
+
}
35
+
}
36
+
```
37
+
Additionally, `workspace.library` can now point directly to a single file instead of a directory:
38
+
```json
39
+
{
40
+
"workspace": {
41
+
"library": [
42
+
"/path/to/single/file.lua"
43
+
]
44
+
}
45
+
}
46
+
```
47
+
48
+
-**Improve type narrowing for 'and'/'or'**: Improved type narrowing for the `and` and `or` operators when used with nullable types and table/literal expressions.
49
+
50
+
### 🐛 Fixed
51
+
- Fixed preferred_local_alias diagnostic
52
+
- Fixed some type checking issues
53
+
- Fixed recursive behavior in reference computation
0 commit comments