You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
If attribute is named "data", an additional attribute called "data-" is added. Bug? #56
This is odd, if I have an attribute called "data", two items are added to the list of choices: "data" and "data-". This is the only attribute which I've encountered any issues (our schema has > 1000 attribute names).
You can replicate using:
{
"version": 1,
"tags": [{
"name": "my-button",
"description": "My button",
"attributes": [{
"name": "data",
"description": "My button type",
"values": [
{ "name": "alert-one" },
{ "name": "alert-two" }
]
}]
}]}
Then activate the above as you will, and type:
<my-button |
You will see list of choices including:
data
data-
Activity
octref commentedon Aug 15, 2019
This is as-designed. VS Code prompts you for
data-as a completion item. This happens even if you don't have any custom data.