Skip to content

[Feature Request] Support custom user-defined types/subtypes #76

@Nabav

Description

@Nabav

LSP v3.17 adds subtypes. Is it possible to support them in VHDL-LS?

I am experiencing VHDL-LS in VSCode. I see that the custom type is highlighted during declaration.

type my_type_t is (FIRST_STATE, SECOND_STATE);
--   ^^^^^^^^^ <- highlighted

But it is not highlighted when defining an instance of that type.

signal my_signal : my_type_t := FIRST_STATE;
--                 ^^^^^^^^^ <- not highlighted

The same happens for subtypes. The subtype is highlighted during declaration:

subtype my_int_t is integer range 0 to 63;
--      ^^^^^^^^ <- highlighted

But the instance type is not highlighted:

constant MY_CONST : my_int_t := 42;
--                  ^^^^^^^^ <- not highlighted

Please let me know, if I am wrong reporting here and the issue should be reported in server side project.

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