summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-14 19:18:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-14 19:18:03 +0800
commit40f1c261e52898d3c9d187bde02033f6071a187d (patch)
treefb305315579b969c9657f557ccf24e1b4f562a4a /script/workspace
parent0d64cc24172ae5605567f12c6777ba6a53f70b72 (diff)
downloadlua-language-server-40f1c261e52898d3c9d187bde02033f6071a187d.zip
collectgarbage after reload workspace
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/workspace.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index 6a6c59c7..3007b468 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -462,6 +462,8 @@ function m.flushFiles(scp)
for uri in pairs(cachedUris) do
files.delRef(uri)
end
+ collectgarbage()
+ collectgarbage()
end
---@param scp scope