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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Unreleased
4
4
<!-- Add all new changes here. They will be moved under a version at release -->
5
-
*`NEW` Add matching checks between the shape of tables and classes, during type checking. [#2768](https://github.com/LuaLS/lua-language-server/pull/2768)
5
+
*`NEW`Setting: `Lua.type.checkTableShape`: Add matching checks between the shape of tables and classes, during type checking. [#2768](https://github.com/LuaLS/lua-language-server/pull/2768)
6
6
*`FIX` Error `attempt to index a nil value` when `Lua.hint.semicolon == 'All'`[#2788](https://github.com/LuaLS/lua-language-server/issues/2788)
Copy file name to clipboardExpand all lines: locale/en-us/setting.lua
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -301,6 +301,10 @@ When a parameter type is not annotated, it is inferred from the function's call
301
301
302
302
When this setting is `false`, the type of the parameter is `any` when it is not annotated.
303
303
]]
304
+
config.type.checkTableShape=
305
+
[[
306
+
Strictly check the shape of the table.
307
+
]]
304
308
config.doc.privateName=
305
309
'Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.'
Copy file name to clipboardExpand all lines: locale/pt-br/setting.lua
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -301,6 +301,10 @@ When the parameter type is not annotated, the parameter type is inferred from th
301
301
302
302
When this setting is `false`, the type of the parameter is `any` when it is not annotated.
303
303
]]
304
+
config.type.checkTableShape=-- TODO: need translate!
305
+
[[
306
+
对表的形状进行严格检查。
307
+
]]
304
308
config.doc.privateName=-- TODO: need translate!
305
309
'Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.'
Copy file name to clipboardExpand all lines: locale/zh-tw/setting.lua
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -300,6 +300,10 @@ config.type.inferParamType = -- TODO: need translate!
300
300
301
301
如果设置为 "false",则在未注释时,参数类型为 "any"。
302
302
]]
303
+
config.type.checkTableShape=-- TODO: need translate!
304
+
[[
305
+
对表的形状进行严格检查。
306
+
]]
303
307
config.doc.privateName=-- TODO: need translate!
304
308
'Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.'
0 commit comments