summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-05 14:11:18 +0800
committersumneko <sumneko@hotmail.com>2019-05-05 14:11:18 +0800
commit1a3ff586501cc6f8bd29f53664b399c1c976f269 (patch)
treeabd6037f6f590f82257808e18e5dec4a1086dd55 /server/src/service.lua
parentc85e32e8e124ab70b1286349469fb838e06b06c9 (diff)
downloadlua-language-server-1a3ff586501cc6f8bd29f53664b399c1c976f269.zip
修正初始打开的文件没有符号的问你
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index 42178c99..74124ba6 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -280,6 +280,12 @@ function mt:reCompile()
obj:kill()
end
end
+ for _, obj in pairs(self._file) do
+ if obj.vm then
+ obj.vm:remove()
+ obj.vm = nil
+ end
+ end
self.global = core.global(self)
self.chain = chainMgr()