diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-01 19:56:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-01 19:56:04 +0800 |
commit | 916820f8d3657ab256cf18144055a0ff31e55412 (patch) | |
tree | 267299173ce7f87db064b3a4e983ff2b52e18d70 /script/vm | |
parent | d529a504b11eaea920df4a14a5da6972e3030eca (diff) | |
download | lua-language-server-916820f8d3657ab256cf18144055a0ff31e55412.zip |
fix #421 keep order
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/getClass.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/getClass.lua b/script/vm/getClass.lua index b9ff8c60..c98a3102 100644 --- a/script/vm/getClass.lua +++ b/script/vm/getClass.lua @@ -7,9 +7,10 @@ local function lookUpDocClass(source) for _, infer in ipairs(infers) do if infer.source.type == 'doc.class' or infer.source.type == 'doc.type' then - return infer.type + return guide.viewInferType(infers) end end + return nil end local function getClass(source, classes, depth, deep) |