summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorAndreas <andreas.matthias@gmail.com>2024-02-17 16:55:17 +0100
committerAndreas <andreas.matthias@gmail.com>2024-02-17 16:55:17 +0100
commit3a46e647a83d719cb4dc4d719372d0d63ec87aac (patch)
treed85183f0a622abb5271ca726b9d4e804364145fe /script
parentc1c03eabe74d9fe7d676eca8bcf073cf2b7229ea (diff)
downloadlua-language-server-3a46e647a83d719cb4dc4d719372d0d63ec87aac.zip
Add 'visible' tag for 'doc.field' and 'tableindex' in JSON output.
Diffstat (limited to 'script')
-rw-r--r--script/cli/doc.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/cli/doc.lua b/script/cli/doc.lua
index f6f076b1..a052fb75 100644
--- a/script/cli/doc.lua
+++ b/script/cli/doc.lua
@@ -169,6 +169,7 @@ local function collectTypes(global, results)
field.desc = getDesc(source)
field.rawdesc = getDesc(source, true)
field.extends = packObject(source.extends)
+ field.visible = vm.getVisibleType(source)
return
end
if source.type == 'setfield'
@@ -208,6 +209,7 @@ local function collectTypes(global, results)
field.desc = getDesc(source)
field.rawdesc = getDesc(source, true)
field.extends = packObject(source.value)
+ field.visible = vm.getVisibleType(source)
return
end
end)