summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-24 16:40:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-24 16:40:48 +0800
commit014216f3dd82bed390d9d96a9b091be448d442ed (patch)
treeb87decbb4ea039f544e7b0256a576f9f4fe77792
parenta8be93d613a7f37a6c29b581c3143979036be274 (diff)
downloadlua-language-server-014216f3dd82bed390d9d96a9b091be448d442ed.zip
break
-rw-r--r--server/src/service.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index 3389f4b1..dbe24778 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -248,13 +248,13 @@ function mt:compileVM(uri)
for i, u in ipairs(self._needCompile) do
if u == uri then
table.remove(self._needCompile, i)
+ break
end
end
local ast = parser:ast(obj.text)
obj.vm = matcher.vm(ast, self, uri)
obj.lines = parser:lines(obj.text, 'utf8')
- log.debug('Compile', uri)
if not obj.vm then
return obj
end