diff options
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) |