diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 20:40:49 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 20:40:49 +0800 |
commit | 70beb5893cc6d9d70fc85460b8aa3fdbd0a88a63 (patch) | |
tree | d64c7c938ce5abdd1086dcaf2d62bffbdf0c4e9c | |
parent | 3c08270c7705d6389012eb838e400a5ec623d8ff (diff) | |
download | lua-language-server-70beb5893cc6d9d70fc85460b8aa3fdbd0a88a63.zip |
fix default value of object
-rw-r--r-- | tools/configuration.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/configuration.lua b/tools/configuration.lua index e59df1e3..285ac334 100644 --- a/tools/configuration.lua +++ b/tools/configuration.lua @@ -32,6 +32,9 @@ local function getDefault(temp) if default == nil and temp.hasDefault then default = json.null end + if type(default) == 'table' and getType(temp) == 'object' then + setmetatable(default, json.object) + end return default end |