Skip to content

Dict / Table optional not typing properly. #3360

@Safebox36

Description

@Safebox36

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Type Checking, Annotations

Expected Behaviour

The fields of children in @field properties table<string, PropsClass>? when non-nil should have a tooltip with their associated field typings and comments.

Actual Behaviour

The fields of children in @field properties table<string, PropsClass>? when non-nil do not have a tooltip with their associated field typings and comments. Instead displaying as ambiguous and no highlighting to indicate a warning or error:

Image Image Image

Reproduction steps

See [Actual Behaviour].

Additional Notes

No response

Log File

No response

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