Skip to content

@alias doesn't have a "file" property in doc json #3255

@tommaisey

Description

@tommaisey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions