diff options
author | Andreas <andreas.matthias@gmail.com> | 2024-02-26 12:56:38 +0100 |
---|---|---|
committer | Andreas <andreas.matthias@gmail.com> | 2024-02-26 12:56:38 +0100 |
commit | 8d31712f38a48dc814657d00b7e63d083bd888dc (patch) | |
tree | 849fb5f80548b333a67c43cf70c62dd6fd93c6e8 /script/cli | |
parent | 96a11fb83ccbd388fd420403969f0a575238c6a2 (diff) | |
parent | c156377201f70db009d8bcfcf664370ea3f0eec2 (diff) | |
download | lua-language-server-8d31712f38a48dc814657d00b7e63d083bd888dc.zip |
Merge branch 'master' into doc-update
Diffstat (limited to 'script/cli')
-rw-r--r-- | script/cli/doc.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/script/cli/doc.lua b/script/cli/doc.lua index 1f0e977e..7ba3ae68 100644 --- a/script/cli/doc.lua +++ b/script/cli/doc.lua @@ -189,6 +189,10 @@ 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 @@ -250,6 +254,10 @@ 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 |