summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-01 18:18:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-01 18:18:27 +0800
commitd529a504b11eaea920df4a14a5da6972e3030eca (patch)
tree639d12447e503d0cb2cd28c87cbd3f5c4c8a48c5 /script/files.lua
parent0dae347da5874b59db867a9d318593f8534ab03b (diff)
downloadlua-language-server-d529a504b11eaea920df4a14a5da6972e3030eca.zip
still can not yield inside compile
Diffstat (limited to 'script/files.lua')
-rw-r--r--script/files.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/files.lua b/script/files.lua
index ed9fd880..8e323a92 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -387,7 +387,7 @@ function m.compileAst(uri, text)
if passed > 0.1 then
log.warn(('Compile [%s] takes [%.3f] sec, size [%.3f] kb.'):format(uri, passed, #text / 1000))
end
- await.delay()
+ --await.delay()
if state then
state.uri = uri
state.ast.uri = uri
@@ -429,7 +429,7 @@ function m.getAst(uri)
if not ast then
ast = m.compileAst(uri, file.text)
m.astMap[uri] = ast
- await.delay()
+ --await.delay()
end
file.cacheActiveTime = timer.clock()
return ast