summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-21 14:12:52 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-21 14:12:52 +0800
commit7ae9cead73d04b53cdb29b033f5ab4cfcf516f38 (patch)
tree345800aeaf62f20fc22001bbb75515fc65b326f9 /server/src
parent5914857908ea6df3fbf423c83227c9595e779b20 (diff)
downloadlua-language-server-7ae9cead73d04b53cdb29b033f5ab4cfcf516f38.zip
强行重新编译
Diffstat (limited to 'server/src')
-rw-r--r--server/src/service.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index 214e3f41..4b9d4319 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -224,6 +224,9 @@ function mt:loadVM(uri)
if not obj then
return nil
end
+ if uri ~= self._lastLoadedVM then
+ self:needCompile(uri)
+ end
self:compileVM(uri)
if obj.vm then
self._lastLoadedVM = uri