diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-05 17:35:15 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-05 17:35:15 +0800 |
commit | b6a1e73020e692dca2ead2cb4a5b5e9201f62288 (patch) | |
tree | 1fc2475d9c09178c7a5128f9b812de0cd8c38210 /script-beta/parser/guide.lua | |
parent | 90b3e60098e05375ac721b7e655c2cb63ae227f3 (diff) | |
download | lua-language-server-b6a1e73020e692dca2ead2cb4a5b5e9201f62288.zip |
修正bug
Diffstat (limited to 'script-beta/parser/guide.lua')
-rw-r--r-- | script-beta/parser/guide.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua index e1eaf345..a4a7291a 100644 --- a/script-beta/parser/guide.lua +++ b/script-beta/parser/guide.lua @@ -1192,10 +1192,6 @@ function m.status(parentStatus, interface) deep = parentStatus and parentStatus.deep, results = {}, } - local searchDepth = interface and interface.getSearchDepth() or 0 - if status.depth >= searchDepth then - status.deep = false - end status.lock = status.locks[status.depth] or {} status.locks[status.depth] = status.lock if interface then @@ -1203,6 +1199,10 @@ function m.status(parentStatus, interface) status.interface[k] = v end end + local searchDepth = status.interface.getSearchDepth and status.interface.getSearchDepth() or 0 + if status.depth >= searchDepth then + status.deep = false + end return status end |