diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-07-19 16:14:06 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-07-19 16:14:06 +0800 |
commit | 83aa702b33d5dd66e35ddb6883cd8d7417b5f83b (patch) | |
tree | 6c50f1b147e3de3ddea5de7b79074c3f5eaf4ff2 /script/workspace | |
parent | 0108cc7c485a2885976d33e2da9419b97223e66e (diff) | |
download | lua-language-server-83aa702b33d5dd66e35ddb6883cd8d7417b5f83b.zip |
speed up tests
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/workspace.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index a55e6246..da2f9daf 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -469,8 +469,6 @@ function m.flushFiles(scp) for uri in pairs(cachedUris) do files.delRef(uri) end - collectgarbage() - collectgarbage() end ---@param scp scope @@ -491,6 +489,8 @@ end ---@async ---@param scp scope function m.awaitReload(scp) + await.unique('workspace reload:' .. scp:getName()) + await.sleep(0.1) scp:set('ready', false) scp:set('nativeMatcher', nil) scp:set('libraryMatcher', nil) |