summaryrefslogtreecommitdiff
path: root/script/service/service.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/service/service.lua')
-rw-r--r--script/service/service.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/script/service/service.lua b/script/service/service.lua
index 247cb5b5..bd9c425f 100644
--- a/script/service/service.lua
+++ b/script/service/service.lua
@@ -10,6 +10,7 @@ local files = require 'files'
local lang = require 'language'
local ws = require 'workspace'
local time = require 'bee.time'
+local config = require 'config'
local m = {}
m.type = 'service'
@@ -198,6 +199,16 @@ function m.reportStatus()
proto.notify('$/status/report', info)
end
+config.watch(function (key, value)
+ if key == 'Lua.window.statusBar' then
+ if value then
+ proto.notify('$/status/show')
+ else
+ proto.notify('$/status/hide')
+ end
+ end
+end)
+
function m.testVersion()
local stack = debug.setcstacklimit(200)
debug.setcstacklimit(stack + 1)