Skip to content

When a parameter for a function is defined as fun(param:type), the auto-complete when you're using that function stops working beyond typing "fun" #857

Open
@chadvandy

Description

@chadvandy

For example, having a function defined as:

---@param callback fun(text:string)
local function my_fun(callback)
    callback()
end

When you go to call it using my_fun(), the auto-completer suggests "fun(text:string), but if you start typing func the auto-completer loses the suggestion.

Screenshot 2021-12-11 101408
Screenshot 2021-12-11 101422

Metadata

Metadata

Assignees

No one assigned

    Labels

    as designedFunctioning as intended, will not be modified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions