diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-01-16 19:53:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-01-16 19:53:30 +0800 |
commit | a6798e6adb81da6b7f833bc39da0a6368178a090 (patch) | |
tree | e9c215b71a0767e00f27a56467239c7932de287d /script/workspace | |
parent | 7dc490d3e62ce6881a9e3e59bddaa362bb2082f1 (diff) | |
download | lua-language-server-a6798e6adb81da6b7f833bc39da0a6368178a090.zip |
fix #1796
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/workspace.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index bf4256b3..f08468c8 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -204,9 +204,12 @@ function m.getLibraryMatchers(scp) librarys[m.normalize(path)] = true end end - log.debug('meta path:', scp:get 'metaPath') - if scp:get 'metaPath' then - librarys[m.normalize(scp:get 'metaPath')] = true + local metaPaths = scp:get 'metaPaths' + log.debug('meta path:', inspect(metaPaths)) + if metaPaths then + for _, metaPath in ipairs(metaPaths) do + librarys[m.normalize(metaPath)] = true + end end local matchers = {} |