diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-08 19:32:00 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-08 19:32:00 +0800 |
commit | fc104506978d4b0254eb80d4529538f3e4e65538 (patch) | |
tree | 4b2cf0bf30d6c1139edc5ca9fb1f64fe8fa45368 /server/src | |
parent | 4f5b3a6d0e7312d49659a3e37e512479feae63e1 (diff) | |
download | lua-language-server-fc104506978d4b0254eb80d4529538f3e4e65538.zip |
改个目录
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/workspace/init.lua | 1 | ||||
-rw-r--r-- | server/src/workspace/workspace.lua (renamed from server/src/workspace.lua) | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/server/src/workspace/init.lua b/server/src/workspace/init.lua new file mode 100644 index 00000000..fa8bc6d9 --- /dev/null +++ b/server/src/workspace/init.lua @@ -0,0 +1 @@ +return require 'workspace.workspace' diff --git a/server/src/workspace.lua b/server/src/workspace/workspace.lua index fd6f9c04..6bd5c79e 100644 --- a/server/src/workspace.lua +++ b/server/src/workspace/workspace.lua @@ -122,8 +122,10 @@ function mt:scanFiles() for path in pairs(config.config.workspace.ignoreDir) do ignored[#ignored+1] = path end - for path in pairs(config.other.exclude) do - ignored[#ignored+1] = path + for path, ignore in pairs(config.other.exclude) do + if ignore then + ignored[#ignored+1] = path + end end if config.config.workspace.ignoreSubmodules then local buf = io.load(self.root / '.gitmodules') |