summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-30 17:41:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-30 17:41:44 +0800
commita0c905ba6de413df0fc754d638db6431a203b330 (patch)
treeab3be6f9d92b33c9e2ce507f4652580ea6bd986e /script/workspace
parent3a21b34bb31c8988bff6b636bdbf506db373d564 (diff)
downloadlua-language-server-a0c905ba6de413df0fc754d638db6431a203b330.zip
flush cache after 5 min
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/workspace.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index d0676b30..edde3ab9 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -423,6 +423,10 @@ function m.getCache(name)
return m.cache[name]
end
+function m.flushCache()
+ m.cache = {}
+end
+
function m.reload()
await.call(m.awaitReload)
end