Skip to content

Suggest field names when nested table type is inferred #502

Closed
@georgiy-belyanin

Description

@georgiy-belyanin

There is basic auto-completion suggesting table field names if the table type is known. Though it's really basic. Take this example.

---@param a { foo: { bar: number } }
function buz(a) end

buz({
    foo = { -- `foo` is suggested
        bar = 0 -- `bar` is not
    }
})

a is a nested structure, meanwhile foo is suggested by the language server, bar is not. It might be handy to have such suggestions.

Metadata

Metadata

Assignees

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