summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-08-06 20:21:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-08-06 20:21:46 +0800
commit011f95c71a96ddb2c15a75b95d42c0fddf6f37cc (patch)
treedfc8fe8dc0671f4dfd4aaf615204c0b0b89d1752 /script/provider/provider.lua
parent16a7c65b0284d4b8ae40b2d1c75d898c08771b34 (diff)
downloadlua-language-server-011f95c71a96ddb2c15a75b95d42c0fddf6f37cc.zip
需要 statusBar 选项才会显示状态栏
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 3c9782c1..af01aaf8 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -1599,6 +1599,9 @@ m.register '$/psi/select' {
local function refreshStatusBar()
+ if not client.getOption('statusBar') then
+ return
+ end
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