Skip to content

Provide a web-types.json file for compatibility with Intellij IDEs #5250

@sportshead

Description

@sportshead

What is affected?

Tooling

Description

Provide a web-types.json file in line with Intellij standards, in order to enable syntax highlighting for Intellij IDEs. This could probably be automatically generated in scripts/analyzer.

See https://github.com/JetBrains/web-types

Reproduction

Use @material/web in an Intellij IDE, and write some code using material web components. An inspection error saying "Unknown html tag" will appear (see image)
screenshot of intellij idea inspection saying `Unknown html tag md-icon`

Workaround

Add each component to Settings > Editor > Inspections > HTML > Unknown tag manually

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Affected versions

1.0.1

Browser/OS/Node environment

IntelliJ IDEA 2023.2.5 (Ultimate Edition)

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