summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-16 19:53:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-16 19:53:30 +0800
commita6798e6adb81da6b7f833bc39da0a6368178a090 (patch)
treee9c215b71a0767e00f27a56467239c7932de287d /script/workspace
parent7dc490d3e62ce6881a9e3e59bddaa362bb2082f1 (diff)
downloadlua-language-server-a6798e6adb81da6b7f833bc39da0a6368178a090.zip
fix #1796
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/workspace.lua9
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 = {}