summaryrefslogtreecommitdiff
path: root/script/cli/doc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-02-26 20:29:31 +0800
committerGitHub <noreply@github.com>2024-02-26 20:29:31 +0800
commitdd626f20a17f6d1353e4383bf514bdc1eaa01134 (patch)
treef701eadf01048a9a2c369363e648a736bd5cea99 /script/cli/doc.lua
parent3688b8eff1e479d9a78413d347c3495603547c23 (diff)
downloadlua-language-server-dd626f20a17f6d1353e4383bf514bdc1eaa01134.zip
Revert "Add "deprecated" key in JSON output."
Diffstat (limited to 'script/cli/doc.lua')
-rw-r--r--script/cli/doc.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/script/cli/doc.lua b/script/cli/doc.lua
index 7b1cdca2..fb9b0a8e 100644
--- a/script/cli/doc.lua
+++ b/script/cli/doc.lua
@@ -189,10 +189,6 @@ local function collectTypes(global, results)
field.rawdesc = getDesc(source, true)
field.extends = packObject(source.value)
field.visible = vm.getVisibleType(source)
- local depr = vm.getDeprecated(source)
- if (depr and not depr.versions) then
- field.deprecated = true
- end
return
end
if source.type == 'tableindex' then
@@ -254,10 +250,6 @@ local function collectVars(global, results)
result.rawdesc = result.rawdesc or getDesc(set, true)
result.defines[#result.defines].extends['desc'] = getDesc(set)
result.defines[#result.defines].extends['rawdesc'] = getDesc(set, true)
- local depr = vm.getDeprecated(set)
- if (depr and not depr.versions) then
- result.defines[#result.defines].extends['deprecated'] = true
- end
end
end
if #result.defines == 0 then