summaryrefslogtreecommitdiff
path: root/script/cli/doc.lua
diff options
context:
space:
mode:
authorAndreas <andreas.matthias@gmail.com>2024-02-15 14:18:48 +0100
committerAndreas <andreas.matthias@gmail.com>2024-02-15 18:14:35 +0100
commitc1c03eabe74d9fe7d676eca8bcf073cf2b7229ea (patch)
tree148c36988ca89fb50551a277b2c4f82955076fc8 /script/cli/doc.lua
parenta89b34399f1ca57f2f5473cf0b1977dfd3cd9799 (diff)
downloadlua-language-server-c1c03eabe74d9fe7d676eca8bcf073cf2b7229ea.zip
Added 'visible' key (public, protected, ...) in JSON output.
Diffstat (limited to 'script/cli/doc.lua')
-rw-r--r--script/cli/doc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/cli/doc.lua b/script/cli/doc.lua
index 9140a258..f6f076b1 100644
--- a/script/cli/doc.lua
+++ b/script/cli/doc.lua
@@ -187,6 +187,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
if source.type == 'tableindex' then