Skip to content

Parameter information skips methods with 0 (positional) arguments #1367

@johroj

Description

@johroj

In VS Code, there is a missing method in the parameter suggestions as exemplified by

bar(x) = x
bar(; x) = bar(x)

bar(<Only one method is suggested when cursor is here>)

I think it should be reasonable to assume that the list of methods proposed here is equal to what you get from Base.methods.

It becomes more confusing when there is only one method that takes no positional arguments (but possibly keyword arguments). Then there is no popup after writing bar(, which is easily interpreted as bar not being a valid function.

Taking it one step further, it could also be a good idea to show something if bar is defined like function bar end but has no methods.

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