diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-05 16:49:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-05 16:49:00 +0800 |
commit | dbb99f3919751bea59e8ffffcda9bb968c74a8f5 (patch) | |
tree | 88835e93c48071f3f75080e4ec8d880ae3ab13e6 /script-beta/parser/guide.lua | |
parent | 9c931e98e13ac7e781f1b7ddbfbb1d3daa1c33cf (diff) | |
download | lua-language-server-dbb99f3919751bea59e8ffffcda9bb968c74a8f5.zip |
优化自动完成的性能
Diffstat (limited to 'script-beta/parser/guide.lua')
-rw-r--r-- | script-beta/parser/guide.lua | 2 |
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 |