diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-05 17:15:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-05 17:15:05 +0800 |
commit | cb30a8f68bb18e210a2a2853aaaa583507bdf1b8 (patch) | |
tree | 21899cc66fd5375cfe0d38dcb4030bc64c8ea3ba /script-beta/parser/guide.lua | |
parent | dbb99f3919751bea59e8ffffcda9bb968c74a8f5 (diff) | |
download | lua-language-server-cb30a8f68bb18e210a2a2853aaaa583507bdf1b8.zip |
性能相关的选项
Diffstat (limited to 'script-beta/parser/guide.lua')
-rw-r--r-- | script-beta/parser/guide.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua index f52e9545..9e9b085c 100644 --- a/script-beta/parser/guide.lua +++ b/script-beta/parser/guide.lua @@ -1194,7 +1194,8 @@ function m.status(parentStatus, interface) deep = parentStatus and parentStatus.deep, results = {}, } - if status.depth >= 5 then + local searchDepth = interface and interface.searchDepth or 0 + if status.depth >= searchDepth then status.deep = false end status.lock = status.locks[status.depth] or {} |