Skip to content

Commit

Permalink
Merge pull request #2543 from LuaLS/revert-2539-async
Browse files Browse the repository at this point in the history
Revert "Add "async" key in JSON output."
  • Loading branch information
sumneko authored Feb 26, 2024
2 parents e1afc6e + bf458bf commit 3688b8e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions script/cli/doc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3688b8e

Please sign in to comment.