Skip to content

[Themes] Suggest only properties and attributes that are supported by the class #277

Open
@AmjadHD

Description

@AmjadHD

As defined in https://www.sublimetext.com/docs/3/themes.html#elements, each class supports only a set of attributes and propeties, and not all of them.
PackageDev provides all properties and attributes regardless of whether the class actually supports them.
It would be handy if PacckageDev limited the suggestion provided in a rule to the properties and attributes supported by the class.
For example

{
    "class": "tab_label",
    "attributes": |
}

It should suggest transient and hover.

{
    "class": "tab_label",
    "attributes": ["transient"]
    |
}

It should provide shadow and font properties and fg·

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions