diff options
-rw-r--r-- | server/src/async/scanfiles.lua | 2 | ||||
-rw-r--r-- | server/src/workspace.lua | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/server/src/async/scanfiles.lua b/server/src/async/scanfiles.lua index 650141a2..4829f8e1 100644 --- a/server/src/async/scanfiles.lua +++ b/server/src/async/scanfiles.lua @@ -7,7 +7,7 @@ local ignore = { ['node_modules'] = true, } -for _, name in pairs(args.ignore) do +for name in pairs(args.ignore) do ignore[name] = true end diff --git a/server/src/workspace.lua b/server/src/workspace.lua index 8f51fc11..2fd7ad65 100644 --- a/server/src/workspace.lua +++ b/server/src/workspace.lua @@ -78,14 +78,9 @@ function mt:init(rootUri) log.info('Log path: ', logPath) log.init(ROOT, logPath) - local ignore = {} - for name in pairs(config.config.workspace.ignoreDir) do - ignore[#ignore+1] = name - end - async.run('scanfiles', { root = self.root:string(), - ignore = ignore, + ignore = config.config.workspace.ignoreDir, }, function (file) if file == 'ok' then self:reset() |