diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-30 13:46:06 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-30 13:46:06 +0800 |
commit | e99e79c3c92a4caf7239565ed2edb7e6fbd6d003 (patch) | |
tree | 50e6f6e06083e9ea90d1c957158ff17c229228c4 /script/workspace | |
parent | 8d6f1a6bf6c5293dd26194aa3b39c8e9e0ec4010 (diff) | |
download | lua-language-server-e99e79c3c92a4caf7239565ed2edb7e6fbd6d003.zip |
fix
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/workspace.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index f0ed13e3..3e6b9d38 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -66,7 +66,7 @@ function m.getNativeMatcher() if not m.path then return nil end - if m.nativeVersion == config.version then + if m.nativeMatcher then return m.nativeMatcher end @@ -128,7 +128,7 @@ end --- 创建代码库筛选器 function m.getLibraryMatchers() - if m.libraryVersion == config.version then + if m.libraryMatchers then return m.libraryMatchers end @@ -244,6 +244,8 @@ end function m.awaitPreload() await.close 'preload' await.setID 'preload' + m.libraryMatchers = nil + m.nativeMatcher = nil local progress = { max = 0, read = 0, |