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
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,20 @@
13
13
```
14
14
*`NEW` Test CLI: `--name=<testname>``-n=<testname>`: run specify unit test
15
15
*`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
+
---@classConfig
19
+
---@fieldanumber
20
+
21
+
---@class (partial) Config.P:Config
22
+
---@fieldbnumber
23
+
24
+
---@typeConfig.P[]
25
+
localcfgs= {}
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)
0 commit comments