diff options
author | sumneko <sumneko@hotmail.com> | 2022-02-08 17:08:30 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-02-08 17:08:30 +0800 |
commit | 89a194438665df7185f0a88cf7a1ced9c62553f9 (patch) | |
tree | 340abe5514fd426da08c79c82b3d139ae2a9111e /script/workspace | |
parent | 12245cffd05136e0fb5da059df72a015a1bdb949 (diff) | |
download | lua-language-server-89a194438665df7185f0a88cf7a1ced9c62553f9.zip |
must wait for other scopes to add library
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/workspace.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index 89908468..fc146fc1 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -304,6 +304,9 @@ function m.awaitPreload(scp) watchers[#watchers+1] = fw.watch(furi.decode(libMatcher.uri)) end + -- must wait for other scopes to add library + await.sleep(0.1) + log.info(('Found %d files at:'):format(ld.max), scp:getName()) ld:loadAll() log.info('Preload finish at:', scp:getName()) |