diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-04 20:44:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-04 20:44:40 +0800 |
commit | 83e569e82c5d5035bc892ddb0ad3c82877735564 (patch) | |
tree | 3c40ce3aa45afe73a2dc8054a664bde6e1bf6338 /script/workspace | |
parent | a927549a7a32d173eb686022f3cf1bfad9815f16 (diff) | |
download | lua-language-server-83e569e82c5d5035bc892ddb0ad3c82877735564.zip |
clean up codes
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/workspace.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index 37585eba..cb033582 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -13,11 +13,11 @@ local sp = require 'bee.subprocess' local m = {} m.type = 'workspace' -m.nativeVersion = -1 +m.nativeVersion = -1 m.libraryVersion = -1 -m.nativeMatcher = nil -m.requireCache = {} -m.matchOption = { +m.nativeMatcher = nil +m.requireCache = {} +m.matchOption = { ignoreCase = platform.OS == 'Windows', } @@ -133,7 +133,7 @@ function m.getLibraryMatchers() end local librarys = {} - for path, pattern in pairs(config.config.workspace.library) do + for path in pairs(config.config.workspace.library) do librarys[m.normalize(path)] = true end if library.metaPath then |