summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-23 14:38:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-23 14:38:45 +0800
commitea19d0e46ea4828531ad481f6018d334cd0b5999 (patch)
tree642e5d2835e7319692106414b95298d1c25cf7b5 /server/src/service.lua
parentf41b764aa1b6ff6708da9ce84468839635e6720c (diff)
downloadlua-language-server-ea19d0e46ea4828531ad481f6018d334cd0b5999.zip
支持全局变量了
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index 84be9832..57606d19 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -264,7 +264,10 @@ function mt:_compileChain(obj, compiled)
end
function mt:_compileGlobal(obj, compiled)
- self._global:compileVM(obj.uri, obj.vm)
+ local needReCompile = self._global:compileVM(obj.uri, obj.vm)
+ for _, uri in ipairs(needReCompile) do
+ self:needCompile(uri, compiled)
+ end
end
function mt:getGlobal(key)