How are you using the lua-language-server?
Command Line
Which OS are you using?
Linux
What is the issue affecting?
Annotations
Expected Behaviour
When exporting docs with lua-language-server --doc, function-level tags like @nodiscard should be included in the generated doc.json.
Actual Behaviour
Function-level tags like @nodiscard are missing from the generated doc.json.
Reproduction steps
-
Create a Lua file, e.g., Set.lua, with a function using @nodiscard:
---@class Set
local Set = {}
---Return true if the set has no elements
---@return boolean
---@nodiscard
function Set:isempty() end
-
Run lua-language-server --doc Set.lua in the project directory.
-
Open the generated doc.json.
-
Observe that the @nodiscard tag is not included.
Additional Notes
Log File
No response
How are you using the lua-language-server?
Command Line
Which OS are you using?
Linux
What is the issue affecting?
Annotations
Expected Behaviour
When exporting docs with
lua-language-server --doc, function-level tags like@nodiscardshould be included in the generateddoc.json.Actual Behaviour
Function-level tags like
@nodiscardare missing from the generateddoc.json.Reproduction steps
Create a Lua file, e.g.,
Set.lua, with a function using@nodiscard:Run
lua-language-server --doc Set.luain the project directory.Open the generated
doc.json.Observe that the
@nodiscardtag is not included.Additional Notes
Log File
No response