diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-22 20:42:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-22 20:42:16 +0800 |
commit | e9ef67eb9f999aa51ac793cd70252e5587eb3bd6 (patch) | |
tree | 500a08121f1dc3975be11c04787733510e13c7a6 /script/provider/provider.lua | |
parent | 22cfc98fa8684002e6ab8a8279e898862ba0f494 (diff) | |
download | lua-language-server-e9ef67eb9f999aa51ac793cd70252e5587eb3bd6.zip |
add `$schema`
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 564c3ad9..ead0ca46 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -29,8 +29,8 @@ end local function updateConfig() local merged = {} - if CONFIGPATH then - local cfg = cfgLoader.loadLocalConfig(CONFIGPATH) + local cfg = cfgLoader.loadLocalConfig(CONFIGPATH) + if cfg then log.debug('load config from local', CONFIGPATH) -- watch directory filewatch.watch(workspace.getAbsolutePath(CONFIGPATH):gsub('[^/\\]+$', '')) |