diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-13 20:09:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-13 20:09:42 +0800 |
commit | 13213502dc06cfa709ff838f3d93516624191471 (patch) | |
tree | 885deb9e15d7d3e70d388648766155c20ea4f980 /script/provider | |
parent | 2d1119fac03e102a376140006a3eb9c8a4c59e3b (diff) | |
download | lua-language-server-13213502dc06cfa709ff838f3d93516624191471.zip |
fix `window.statusBar` and `telemetry.enable`
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/provider.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 1c84caf1..4b22cb47 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -1023,7 +1023,7 @@ do end local function refreshStatusBar() - local valid = true + local valid = config.get(nil, 'Lua.window.statusBar') for _, scp in ipairs(workspace.folders) do if not config.get(scp.uri, 'Lua.window.statusBar') then valid = false @@ -1038,7 +1038,8 @@ local function refreshStatusBar() end config.watch(function (uri, key, value) - if key == 'Lua.window.statusBar' then + if key == 'Lua.window.statusBar' + or key == '' then refreshStatusBar() end end) |