diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-23 15:43:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-23 15:43:48 +0800 |
commit | 6000f70f8420e169a25fddecf993cf46d4941912 (patch) | |
tree | a9c472c067da7a5610771d5552cc67eb46cd9938 | |
parent | a698d13407454735870b671bb270f0cf33daab31 (diff) | |
download | lua-language-server-6000f70f8420e169a25fddecf993cf46d4941912.zip |
空闲编译会让出,因此必须在编译完成后才能去除标记,以免阻碍立即编译
-rw-r--r-- | server/src/service.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/service.lua b/server/src/service.lua index 8e22c724..3b3b4f1d 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -288,7 +288,6 @@ function mt:compileVM(uri) return nil end - local compiled = self:_markCompiled(uri) local clock = os.clock() local ast = self:compileAst(obj) obj.astCost = os.clock() - clock @@ -303,6 +302,7 @@ function mt:compileVM(uri) obj.lines = parser:lines(obj.text, 'utf8') obj.lineCost = os.clock() - clock + local compiled = self:_markCompiled(uri) self._needDiagnostics[uri] = true if not obj.vm then |