diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-27 17:03:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-27 17:03:44 +0800 |
commit | 85b7d3fab81eea8f010d127230159fa7f458a984 (patch) | |
tree | c11ba4d12d01e2cc26a6816a7dffdf5043acf81d | |
parent | e72f5143dc1d2d41763b74809b1ffe5ec5f426c2 (diff) | |
download | lua-language-server-85b7d3fab81eea8f010d127230159fa7f458a984.zip |
暂时先过测试
-rw-r--r-- | script/vm/getGlobals.lua | 19 |
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) |