summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-11 17:07:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-11 17:07:31 +0800
commit62dee501181ebfa374c827df5a15ea9461f38b73 (patch)
tree0e35d3e05bff26818c5bdc6bcba900163be7d516 /script/vm
parentf10dd2af22efeb5330f2da23d615ff7bc213b1eb (diff)
downloadlua-language-server-62dee501181ebfa374c827df5a15ea9461f38b73.zip
update
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/docs.lua7
-rw-r--r--script/vm/globals.lua7
2 files changed, 4 insertions, 10 deletions
diff --git a/script/vm/docs.lua b/script/vm/docs.lua
index 5f1b0bdc..95cb4127 100644
--- a/script/vm/docs.lua
+++ b/script/vm/docs.lua
@@ -37,11 +37,8 @@ end
files.watch(function (ev, uri)
if ev == 'update' then
- await.call(function ()
- popDocs(uri)
- await.delay()
- pushDocs(uri)
- end)
+ popDocs(uri)
+ pushDocs(uri)
end
end)
diff --git a/script/vm/globals.lua b/script/vm/globals.lua
index b16803b9..6a481bd1 100644
--- a/script/vm/globals.lua
+++ b/script/vm/globals.lua
@@ -37,11 +37,8 @@ end
files.watch(function (ev, uri)
if ev == 'update' then
- await.call(function ()
- popGlobals(uri)
- await.delay()
- pushGlobals(uri)
- end)
+ popGlobals(uri)
+ pushGlobals(uri)
end
end)