How are you using the lua-language-server?
Command Line
Which OS are you using?
MacOS
What is the issue affecting?
Other
Expected Behaviour
In the documatation JSON output, most parsed declarations have a "file" property in the objects in the "defines" array. @alias declarations (with "type": "doc.alias") should have this as well.
Actual Behaviour
@alias declarations (with "type": "doc.alias") have no "file" property.
Reproduction steps
Write this Lua file:
---@alias foo
---| "a"
---| "b"
Then run:
lua-language-server --doc=. --doc_out_path=.
Check the doc.json file. The element with "name": "foo" should have a "file" property in its first "defines" object, but does not.
How are you using the lua-language-server?
Command Line
Which OS are you using?
MacOS
What is the issue affecting?
Other
Expected Behaviour
In the documatation JSON output, most parsed declarations have a
"file"property in the objects in the"defines"array.@aliasdeclarations (with"type": "doc.alias") should have this as well.Actual Behaviour
@aliasdeclarations (with"type": "doc.alias") have no"file"property.Reproduction steps
Write this Lua file:
Then run:
Check the
doc.jsonfile. The element with"name": "foo"should have a"file"property in its first"defines"object, but does not.