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' {
1599
1599
1600
1600
1601
1601
local function refreshStatusBar ()
1602
+ if not client .getOption (' statusBar' ) then
1603
+ return
1604
+ end
1602
1605
local valid = config .get (nil , ' Lua.window.statusBar' )
1603
1606
for _ , scp in ipairs (workspace .folders ) do
1604
1607
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'
13
13
local fw = require ' filewatch'
14
14
local furi = require ' file-uri'
15
15
local net = require ' service.net'
16
+ local client = require ' client'
16
17
17
18
require ' jsonc'
18
19
require ' json-beautify'
202
203
local showStatusTip = math.random (100 ) == 1
203
204
204
205
function m .reportStatus ()
206
+ if not client .getOption (' statusBar' ) then
207
+ return
208
+ end
205
209
local info = {}
206
210
if m .workingClock and time .monotonic () - m .workingClock > 100 then
207
211
info .text = ' $(loading~spin)Lua'
You can’t perform that action at this time.
0 commit comments