diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-18 14:48:49 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-18 14:48:49 +0800 |
commit | 9f6cf53d0452b33316225450af5022f70bffca4c (patch) | |
tree | be69953b576bdec5c70b324659bcf2149e0caa45 /script/workspace | |
parent | 5c39b8fc967b1dec072d9dcd01bee4752f184044 (diff) | |
download | lua-language-server-9f6cf53d0452b33316225450af5022f70bffca4c.zip |
fix #452 fix matching gitignore of root
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/workspace.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index 6d5c8034..14bde05a 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -129,6 +129,7 @@ function m.getNativeMatcher() end m.nativeMatcher = glob.gitignore(pattern, m.matchOption, globInteferFace) + m.nativeMatcher:setOption('root', m.path) m.nativeVersion = config.version return m.nativeMatcher @@ -155,6 +156,7 @@ function m.getLibraryMatchers() if fs.exists(fs.path(path)) then local nPath = fs.absolute(fs.path(path)):string() local matcher = glob.gitignore(true, m.matchOption, globInteferFace) + matcher:setOption('root', path) if platform.OS == 'Windows' then matcher:setOption 'ignoreCase' end |