diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-09 21:32:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-09 21:32:04 +0800 |
commit | f599f416d7ada3a1824f4f8250a5b5e89da2ac09 (patch) | |
tree | 0d9474f2b64bbfdcbbc692ac853e81e1734fc2f9 | |
parent | 96c870c5b91e724b4a291c857fd2300706017d8a (diff) | |
download | lua-language-server-f599f416d7ada3a1824f4f8250a5b5e89da2ac09.zip |
修正报错
-rw-r--r-- | script-beta/workspace/workspace.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/script-beta/workspace/workspace.lua b/script-beta/workspace/workspace.lua index a0fc7615..543a63a9 100644 --- a/script-beta/workspace/workspace.lua +++ b/script-beta/workspace/workspace.lua @@ -148,8 +148,12 @@ end --- 文件是否作为库被加载 function m.isLibrary(uri) local path = furi.decode(uri) - local ignore = m.getLibraryMatchers() - return ignore(path) + for _, library in ipairs(m.getLibraryMatchers()) do + if library.matcher(path) then + return true + end + end + return false end local function loadFileFactory(root, progress, isLibrary) |