Skip to content

Commit c2b7dc2

Browse files
committed
doc: update changelog
1 parent 624e293 commit c2b7dc2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

changelog.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@
1313
```
1414
* `NEW` Test CLI: `--name=<testname>` `-n=<testname>`: run specify unit test
1515
* `FIX` Fixed the error that the configuration file pointed to by the `--configpath` option was not read and loaded.
16+
* `NEW` `---@class` supports attribute `partial`, which will not check missing inherited fields [#3023](https://github.com/LuaLS/lua-language-server/issues/3023)
17+
```lua
18+
---@class Config
19+
---@field a number
20+
21+
---@class (partial) Config.P: Config
22+
---@field b number
23+
24+
---@type Config.P[]
25+
local cfgs = {}
26+
cfgs[1] = { b = 1 } -- no warning
27+
cfgs[2] = {} -- only warns missing `b`
28+
```
29+
This enables the previous missing field check behavior before [#2970](https://github.com/LuaLS/lua-language-server/issues/2970)
1630

1731
## 3.13.5
1832
`2024-12-20`

0 commit comments

Comments
 (0)