microsoft / microsoft/vscode-custom-data

Question: Isn't it possible to limit suggested attributes/values to the defined in tag?

Open
#10 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.