Skip to content

If attribute is named "data", an additional attribute called "data-" is added. Bug? #56

Closed

Description

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

image

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-

This seems like a bug to me.

Activity

  1. added this to the March 2019 milestone on Mar 4, 2019
  2. added
    bug
    on Mar 4, 2019
  3. added and removed
    bug
    on Aug 15, 2019
  4. octref commented on Aug 15, 2019

    @octref
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions