diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-08-06 20:21:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2024-08-06 20:21:46 +0800 |
commit | 011f95c71a96ddb2c15a75b95d42c0fddf6f37cc (patch) | |
tree | dfc8fe8dc0671f4dfd4aaf615204c0b0b89d1752 /script/provider/provider.lua | |
parent | 16a7c65b0284d4b8ae40b2d1c75d898c08771b34 (diff) | |
download | lua-language-server-011f95c71a96ddb2c15a75b95d42c0fddf6f37cc.zip |
需要 statusBar 选项才会显示状态栏
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 3 |
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 |