summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-16 09:56:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-16 09:56:00 +0800
commit4b995d60acb4d54169de9d3e3baf5c4fab408593 (patch)
treeefdb9a3926c1aeaf70a0f5d5fc2690418eeda7b4 /script
parentcb28b668db32b7afe29c9d01dfcc700b0377e266 (diff)
downloadlua-language-server-4b995d60acb4d54169de9d3e3baf5c4fab408593.zip
check config result
Diffstat (limited to 'script')
-rw-r--r--script/provider/provider.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 2fb999e7..10348fac 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -42,6 +42,11 @@ local function updateConfig()
exclude = configs[3],
}
+ if not updated then
+ log.warn('No config?', util.dump(configs))
+ return
+ end
+
local oldConfig = util.deepCopy(config.config)
local oldOther = util.deepCopy(config.other)
config.setConfig(updated, other)