summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-19 16:56:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-19 16:56:24 +0800
commit01270bd5a047f9ec4dc83d34cda5a59980dd39e7 (patch)
treec7ee6243c6946a8afa8a13b10b3d0b86416c8c93 /script
parent6cf88ae11ac842453cca5936fe6c105076745e55 (diff)
downloadlua-language-server-01270bd5a047f9ec4dc83d34cda5a59980dd39e7.zip
fix #804
Diffstat (limited to 'script')
-rw-r--r--script/config/config.lua2
-rw-r--r--script/workspace/workspace.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/script/config/config.lua b/script/config/config.lua
index 88a3ada1..a361d68f 100644
--- a/script/config/config.lua
+++ b/script/config/config.lua
@@ -169,7 +169,7 @@ local Template = {
['Lua.diagnostics.workspaceRate'] = Type.Integer >> 100,
['Lua.diagnostics.libraryFiles'] = Type.String >> 'Opened',
['Lua.diagnostics.ignoredFiles'] = Type.String >> 'Opened',
- ['Lua.workspace.ignoreDir'] = Type.Hash(Type.String, Type.Boolean, ';'),
+ ['Lua.workspace.ignoreDir'] = Type.Array(Type.String),
['Lua.workspace.ignoreSubmodules'] = Type.Boolean >> true,
['Lua.workspace.useGitIgnore'] = Type.Boolean >> true,
['Lua.workspace.maxPreload'] = Type.Integer >> 1000,
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index 5b87b2bb..240596a4 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -130,7 +130,7 @@ function m.getNativeMatcher()
end
end
-- config.get 'workspace.ignoreDir'
- for path in pairs(config.get 'Lua.workspace.ignoreDir') do
+ for _, path in ipairs(config.get 'Lua.workspace.ignoreDir') do
log.info('Ignore directory:', path)
pattern[#pattern+1] = path
end