Skip to content

Prioritize local types when auto-completing in a -spec #125

@robertoaloi

Description

@robertoaloi

Describe the bug

When completing in a -spec context, we can potentially return a huge list of atoms.
Local types are lost in that list.

To Reproduce**

Define a local type:

-type my_integer() :: integer().

Then start composing a -spec attribute:

-spec foo(my_in~

Expected behavior

The my_integer/0 type appears at the top of the list of completions.

Actual behavior

The type is there, but lost in the sea of all available atoms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions