microsoft / microsoft/vscode-custom-data
Restrict property definitions to specific tags
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 240
- Forks
- 95
- PR merge metrics
- No merged PRs in 30d
Description
I've looked through the information here and several other sites and JSON documents, and the one thing I cannot find an answer to, is how to define a property for only certain tags. For example, NativeScript supports a placeholder-color property on the TextField tag, but VSCode does not recognize it. I've added it as a property to a CSS custom data file as described, but that makes the property available to ALL tags -- not just the TextField tag. If this is indeed new functionality, then I suggest that the property object contain a tags property which would be an array of strings.
{
"version": 1.1,
"properties": [
{
"name": "placeholder-color",
"description": "Color of the placeholder text.",
"tags": ["TextField", "Button"]
}
]
}
On the other hand, if this is already supported in some way, could you please make it more clear in your documents?
Thanks!
Eric
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
Start with the custom data format documentation and the property-definition behavior described in this issue. Verify whether tag-scoped properties are already supported; done means documenting the existing syntax or agreeing on and implementing the proposed tags restriction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100