summaryrefslogtreecommitdiff
path: root/script/progress.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-25 21:38:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-25 21:38:57 +0800
commit5ec8ad22d27051507c55d49d6144f08132976215 (patch)
tree75c843f738c0283eb19516293f857d29560d9b3c /script/progress.lua
parent24f4dfa889cc66bd05223e5d8d36fa19865c772b (diff)
downloadlua-language-server-5ec8ad22d27051507c55d49d6144f08132976215.zip
cleanup
Diffstat (limited to 'script/progress.lua')
-rw-r--r--script/progress.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/progress.lua b/script/progress.lua
index 8ae5e9e0..d1595cf8 100644
--- a/script/progress.lua
+++ b/script/progress.lua
@@ -83,7 +83,7 @@ function mt:_update()
and self._clock + self._delay <= os.clock() then
self._updated = os.clock()
self._dirty = false
- if not config.get 'Lua.window.progressBar' then
+ if not config.get(nil, 'Lua.window.progressBar') then
return
end
proto.request('window/workDoneProgress/create', {
@@ -106,7 +106,7 @@ function mt:_update()
if not self._showed then
return
end
- if not config.get 'Lua.window.progressBar' then
+ if not config.get(nil, 'Lua.window.progressBar') then
self:remove()
return
end