diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-21 14:12:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-21 14:12:52 +0800 |
commit | 7ae9cead73d04b53cdb29b033f5ab4cfcf516f38 (patch) | |
tree | 345800aeaf62f20fc22001bbb75515fc65b326f9 /server/src | |
parent | 5914857908ea6df3fbf423c83227c9595e779b20 (diff) | |
download | lua-language-server-7ae9cead73d04b53cdb29b033f5ab4cfcf516f38.zip |
强行重新编译
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/service.lua | 3 |
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 |