JetBrains / web-types

JSON standard for documenting web component libraries for IDEs, documentation generators and other tools
Apache License 2.0
278 stars 25 forks source link

enums working partially for WebStorm 2020.2.2 #52

Closed AMerkuri closed 1 year ago

AMerkuri commented 1 year ago

If you have defined CSS declaration in your project for attribute then Webstorm will show you (ctrl + J) CSS specificity instead of providing autocomplete for web-types enums.

css

foo[bar] { display: block }

html

<foo bar=""></foo>

web-types.json

...
  "contributions": {
    "html": {
      "elements": [
        {
          "name": "foo",
          "attributes": [
            {
              "name": "bar",
              "value": {
                "kind": "plain",
                "type": "enum"
              },
              "values": [
                {
                  "name": "baz"
                },
                {
                  "name": "qux"
                },
              ]
            },
          ]
...
piotrtomiak commented 1 year ago

@AMerkuri - thanks for the report. I've filed it in our tracking system - https://youtrack.jetbrains.com/issue/WEB-57066

piotrtomiak commented 1 year ago

The fix will be available in 2022.3.