diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-04 20:08:27 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-04 20:08:27 +0800 |
commit | e006a5a6c0cd566650836ceccbf98d4215449bce (patch) | |
tree | 9f835b848dea0deb78c31668af9412237d281d72 /script/workspace | |
parent | 216f3d54901c6759b99850882a549210f0270745 (diff) | |
download | lua-language-server-e006a5a6c0cd566650836ceccbf98d4215449bce.zip |
remove pattern of `Lua.workspace.library`
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/workspace.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index 57bdc00f..37585eba 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -134,16 +134,16 @@ function m.getLibraryMatchers() local librarys = {} for path, pattern in pairs(config.config.workspace.library) do - librarys[m.normalize(path)] = pattern + librarys[m.normalize(path)] = true end if library.metaPath then librarys[m.normalize(library.metaPath)] = true end m.libraryMatchers = {} - for path, pattern in pairs(librarys) do + for path in pairs(librarys) do if fs.exists(fs.path(path)) then local nPath = fs.absolute(fs.path(path)):string() - local matcher = glob.gitignore(pattern, m.matchOption, globInteferFace) + local matcher = glob.gitignore(true, m.matchOption, globInteferFace) if platform.OS == 'Windows' then matcher:setOption 'ignoreCase' end |