From 6940975cb50a41ad64574018c5412d4947e9f1be Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Sat, 17 Aug 2024 08:52:46 +0300 Subject: [PATCH] chore: enable lua-language-server `checkTableShape` by default (#384) It was released yesterday, but was toggled off by default. The example in the pull request works nicely. - pull request - https://github.com/LuaLS/lua-language-server/pull/2768 - comment saying why it was toggled off - https://github.com/LuaLS/lua-language-server/pull/2768#issuecomment-2293094921 - changelog with a little more info - https://github.com/LuaLS/lua-language-server/blob/d702a55715df19a219e963da496e6fb76db0aacd/changelog.md?plain=1#L8 --- .luarc.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.luarc.json b/.luarc.json index 8d3ebd89..68da2f2b 100644 --- a/.luarc.json +++ b/.luarc.json @@ -1,3 +1,9 @@ { - "diagnostics.globals": ["finally"] + "runtime": { + "version": "LuaJIT", + "pathStrict": true + }, + "type": { + "checkTableShape": true + } }