summaryrefslogtreecommitdiff
path: root/script/workspace/workspace.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-08-20 03:42:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-08-20 03:42:43 +0800
commite130a5fe9572194dccf881479311c750151fdf55 (patch)
tree4fa5e86ae7203e475a44fad50becdde7679a9da9 /script/workspace/workspace.lua
parent4af8144d6641ed03d42ea61d2dcdb402f2f6afbf (diff)
downloadlua-language-server-e130a5fe9572194dccf881479311c750151fdf55.zip
cleanup loading
Diffstat (limited to 'script/workspace/workspace.lua')
-rw-r--r--script/workspace/workspace.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index 9d2ad637..1b94f389 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -269,7 +269,7 @@ function m.awaitLoadFile(uri)
scp:get('cachedUris')[uri] = true
ld:loadFile(uri)
end)
- ld:loadAll()
+ ld:loadAll(uri)
end
function m.removeFile(uri)
@@ -346,7 +346,7 @@ function m.awaitPreload(scp)
await.sleep(0.1)
log.info(('Found %d files at:'):format(ld.max), scp:getName())
- ld:loadAll()
+ ld:loadAll(scp:getName())
log.info('Preload finish at:', scp:getName())
end