summaryrefslogtreecommitdiff
path: root/script/vm/getGlobals.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-27 17:03:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-27 17:03:44 +0800
commit85b7d3fab81eea8f010d127230159fa7f458a984 (patch)
treec11ba4d12d01e2cc26a6816a7dffdf5043acf81d /script/vm/getGlobals.lua
parente72f5143dc1d2d41763b74809b1ffe5ec5f426c2 (diff)
downloadlua-language-server-85b7d3fab81eea8f010d127230159fa7f458a984.zip
暂时先过测试
Diffstat (limited to 'script/vm/getGlobals.lua')
-rw-r--r--script/vm/getGlobals.lua19
1 files changed, 7 insertions, 12 deletions
diff --git a/script/vm/getGlobals.lua b/script/vm/getGlobals.lua
index 22e819f5..87921284 100644
--- a/script/vm/getGlobals.lua
+++ b/script/vm/getGlobals.lua
@@ -231,17 +231,12 @@ files.watch(function (ev, uri)
getGlobalSetsCache['*'] = nil
end
end
- await.call(function ()
- local id = 'refreshNewGlobals:' .. uri
- await.close(id)
- await.setID(id)
- await.sleep(1.0)
- for name in pairs(getGlobalsOfFile(uri)) do
- getGlobalCache[name] = nil
- end
- for name in pairs(getGlobalSetsOfFile(uri)) do
- getGlobalSetsCache[name] = nil
- end
- end)
+ -- TODO
+ for name in pairs(getGlobalsOfFile(uri)) do
+ getGlobalCache[name] = nil
+ end
+ for name in pairs(getGlobalSetsOfFile(uri)) do
+ getGlobalSetsCache[name] = nil
+ end
end
end)