summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-03-22 17:57:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-03-22 17:57:59 +0800
commit91ae26be49374dee87d09f0fe9160cb393e4fef7 (patch)
tree6ac7d2ee8b984a6f23829a24ff8870460d0e1172 /script
parentb8627365c0abe5a9d40c91f81b2aef7ea869faad (diff)
downloadlua-language-server-91ae26be49374dee87d09f0fe9160cb393e4fef7.zip
recover mark before return
fix #2004
Diffstat (limited to 'script')
-rw-r--r--script/vm/type.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/vm/type.lua b/script/vm/type.lua
index 756926ba..8382eb86 100644
--- a/script/vm/type.lua
+++ b/script/vm/type.lua
@@ -466,6 +466,7 @@ function vm.isSubType(uri, child, parent, mark, errs)
if ext.type == 'doc.extends.name'
and (not isBasicType or guide.isBasicType(ext[1]))
and vm.isSubType(uri, ext[1], parent, mark, errs) == true then
+ mark[childName] = nil
return true
end
end