summaryrefslogtreecommitdiff
path: root/script-beta/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-05 16:49:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-05 16:49:00 +0800
commitdbb99f3919751bea59e8ffffcda9bb968c74a8f5 (patch)
tree88835e93c48071f3f75080e4ec8d880ae3ab13e6 /script-beta/parser/guide.lua
parent9c931e98e13ac7e781f1b7ddbfbb1d3daa1c33cf (diff)
downloadlua-language-server-dbb99f3919751bea59e8ffffcda9bb968c74a8f5.zip
优化自动完成的性能
Diffstat (limited to 'script-beta/parser/guide.lua')
-rw-r--r--script-beta/parser/guide.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua
index 0c9ec43d..f52e9545 100644
--- a/script-beta/parser/guide.lua
+++ b/script-beta/parser/guide.lua
@@ -2083,7 +2083,7 @@ function m.searchSameFields(status, simple, mode)
max = max + 1
status.cache.count = status.cache.count + 1
m.checkSameSimple(status, simple, data, mode, status.results, queue)
- if max >= (m.searchMax or 10000) then
+ if max >= 10000 then
logWarn('Queue too large!')
break
end