File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1599,6 +1599,9 @@ m.register '$/psi/select' {
15991599
16001600
16011601local function refreshStatusBar ()
1602+ if not client .getOption (' statusBar' ) then
1603+ return
1604+ end
16021605 local valid = config .get (nil , ' Lua.window.statusBar' )
16031606 for _ , scp in ipairs (workspace .folders ) do
16041607 if not config .get (scp .uri , ' Lua.window.statusBar' ) then
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ local time = require 'bee.time'
1313local fw = require ' filewatch'
1414local furi = require ' file-uri'
1515local net = require ' service.net'
16+ local client = require ' client'
1617
1718require ' jsonc'
1819require ' json-beautify'
202203local showStatusTip = math.random (100 ) == 1
203204
204205function m .reportStatus ()
206+ if not client .getOption (' statusBar' ) then
207+ return
208+ end
205209 local info = {}
206210 if m .workingClock and time .monotonic () - m .workingClock > 100 then
207211 info .text = ' $(loading~spin)Lua'
You can’t perform that action at this time.
0 commit comments