Skip to content

Enum methods are not auto-completed #330

@ygerlach

Description

@ygerlach

Describe the bug
If a enum value is auto-completed, the auto completion does not show to_string as option, but other explicitly defined functions.

Software
OS and version: Linux Mint 21.3
Code editor: vscode 1.107.1
Vala Language Server: 0.48.7 76e38dc
Vala version: 0.56.0

To Reproduce
Source code repo:

enum Test {
    ABC,
    DEF;

    public void doSomething() {}
}


void a() {
    Test.ABC.to_string();
    Test.DEF. // auto complete here
}

I expect to see to_string and doSomething, but i only see doSomething.

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