summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-27 20:50:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-27 20:50:42 +0800
commitc2027c12ada4b588182c499d250fb69e55dd408b (patch)
treef820b9f44b84fc7d63ddab3b5f175dff91e716a9 /script/files.lua
parent5f90b1c69ebb935dc46a55039fc3cf414e3be009 (diff)
downloadlua-language-server-c2027c12ada4b588182c499d250fb69e55dd408b.zip
clean up code
Diffstat (limited to 'script/files.lua')
-rw-r--r--script/files.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/files.lua b/script/files.lua
index 88ee466c..dc724b94 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -359,6 +359,7 @@ function m.getAst(uri)
if not ast then
ast = m.compileAst(uri, file.text)
m.astMap[uri] = ast
+ await.delay()
end
file.cacheActiveTime = timer.clock()
return ast