summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-02-26 20:28:36 +0800
committerGitHub <noreply@github.com>2024-02-26 20:28:36 +0800
commitbf458bf8fc1fc7fe2e9762850b3aaa8c1d852695 (patch)
treef90d06877b3944fff89dde073cc37c614f2d1ac8 /script
parente1afc6ef5313e3ff0a02b128e5139dfb5b9efaab (diff)
downloadlua-language-server-bf458bf8fc1fc7fe2e9762850b3aaa8c1d852695.zip
Revert "Add "async" key in JSON output."
Diffstat (limited to 'script')
-rw-r--r--script/cli/doc.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/script/cli/doc.lua b/script/cli/doc.lua
index 7e7c8534..7b1cdca2 100644
--- a/script/cli/doc.lua
+++ b/script/cli/doc.lua
@@ -189,12 +189,9 @@ local function collectTypes(global, results)
field.rawdesc = getDesc(source, true)
field.extends = packObject(source.value)
field.visible = vm.getVisibleType(source)
- if vm.isAsync(source, true) then
- field.async = true
- end
local depr = vm.getDeprecated(source)
if (depr and not depr.versions) then
- field.deprecated = true
+ field.deprecated = true
end
return
end
@@ -257,12 +254,9 @@ 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)
- if vm.isAsync(set, true) then
- result.defines[#result.defines].extends['async'] = true
- end
local depr = vm.getDeprecated(set)
if (depr and not depr.versions) then
- result.defines[#result.defines].extends['deprecated'] = true
+ result.defines[#result.defines].extends['deprecated'] = true
end
end
end