microsoft / microsoft/vscode-custom-data
Question: Isn't it possible to limit suggested attributes/values to the defined in tag?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 240
- Forks
- 95
- PR merge metrics
- No merged PRs in 30d
Description
Question or idea: Can tags suggest/ auto-complete only the attributes / valueset that have been specified in the tag definition of the HTML Custom Data json file? Because I would like certain tags to be very limited in suggestion/auto-complete, without being populated by other global attributes? They shouldn't suggest any other attribute/values than the defined in the custom data directive. It could be set as a tag directive... Something like:
{
"tags": [
{
"name": "foo",
"description": "The foo element",
"suggestOnlyPrivatAttr": true,
"attributes": [
{ "name": "bar" },
{
"name": "baz",
"values": [
{
"name": "baz-val-1"
}
]
}
]
}
]
}
Don't know if this is even possible. Would be nice to have.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the HTML Custom Data JSON format and the proposed tag directive in the issue. Determine whether tag-specific attribute and value suggestions can be limited as described, then document the feasibility and the behavior that would be expected if supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100