diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-07 21:32:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-07 21:32:46 +0800 |
commit | 735210cb6ba3e4e0689efc3155319b0f195eac8d (patch) | |
tree | 31eddc8c6a31863b91cee7351e3799f65646f6ce /script/workspace | |
parent | 680e6c9848a6e5f43ccce11561ec98839822bdea (diff) | |
download | lua-language-server-735210cb6ba3e4e0689efc3155319b0f195eac8d.zip |
cleanup
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/workspace.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index 33252b9d..4c0011b3 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -141,7 +141,7 @@ function m.getNativeMatcher(scp) end end end - for path in pairs(config.get(scp.uri, 'Lua.workspace.library')) do + for _, path in ipairs(config.get(scp.uri, 'Lua.workspace.library')) do path = m.getAbsolutePath(scp.uri, path) if path then log.debug('Ignore by library:', path) @@ -183,7 +183,7 @@ function m.getLibraryMatchers(scp) end local librarys = {} - for path in pairs(config.get(scp.uri, 'Lua.workspace.library')) do + for _, path in ipairs(config.get(scp.uri, 'Lua.workspace.library')) do path = m.getAbsolutePath(scp.uri, path) if path then librarys[m.normalize(path)] = true |