material-components / material-components/material-web

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

Open
#5,250 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SCSS
Stars
11.3k
Forks
1.1k
Avg merge
20h 28m
Merged PRs (30d)
13

Description

### 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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the web-types standard linked in the issue and inspect the existing generation entry point in scripts/analyzer. Determine the metadata IntelliJ requires for the Material Web components, then provide a compatible web-types.json file or generation output and verify that IntelliJ recognizes the components without unknown-tag warnings.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.