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 | |
parent | 90b3e60098e05375ac721b7e655c2cb63ae227f3 (diff) | |
download | lua-language-server-b6a1e73020e692dca2ead2cb4a5b5e9201f62288.zip |
修正bug
Diffstat (limited to 'script-beta')
-rw-r--r-- | script-beta/parser/guide.lua | 8 | ||||
-rw-r--r-- | script-beta/vm/getGlobals.lua | 4 |
2 files changed, 8 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 diff --git a/script-beta/vm/getGlobals.lua b/script-beta/vm/getGlobals.lua index ea2c5529..7b42d345 100644 --- a/script-beta/vm/getGlobals.lua +++ b/script-beta/vm/getGlobals.lua @@ -83,6 +83,10 @@ local function insertLibrary(results, name) results[#results+1] = library.global[libname] local asName = config.config.runtime.special[libname] results[#results+1] = library.global[asName] + elseif name == '*' then + for _, lib in pairs(library.global) do + results[#results+1] = lib + end end end |