microsoft / microsoft/vscode-html-languageservice
Restrict Attribute List for Custom Elements/Web Components
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 284
- Forks
- 138
- Avg merge
- 19h 11m
- Merged PRs (30d)
- 5
Description
There may be instances where the developer doesn't want to or shouldn't see a full list of HTML attributes when working with custom elements/web components. It would be nice to be able to restrict the list of available attributes to those that have been defined in the html.customData configuration or at least promote them to the top of the list.
In this screenshot, the two defined attributes for this component are size and value, which the developer is unaware of because they are buried in this list somewhere.

Contributor guide
No contributing guide indexed for this repository
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 by tracing custom element attribute completion and how the html.customData configuration is consumed. Decide whether configured attributes should replace the full list or be promoted, then verify that the configured size and value attributes appear as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100