summaryrefslogtreecommitdiff
path: root/script/provider/capability.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-30 19:35:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-30 19:35:00 +0800
commit5ef1973527cf63eb26215b74c71ed1806da92224 (patch)
tree214e863dd237b04da06fb52a884ab6a64a476769 /script/provider/capability.lua
parent8132f4c9da02858c23813d15c2cb6ded6df57ea1 (diff)
downloadlua-language-server-5ef1973527cf63eb26215b74c71ed1806da92224.zip
fix supporting for multi-workspace
Diffstat (limited to 'script/provider/capability.lua')
-rw-r--r--script/provider/capability.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/capability.lua b/script/provider/capability.lua
index 4e63f571..19024a54 100644
--- a/script/provider/capability.lua
+++ b/script/provider/capability.lua
@@ -40,6 +40,9 @@ local function resolve(t)
return m.resolvedMap[key] or ''
end)
end
+ if type(v) == 'function' then
+ t[k] = v()
+ end
end
end