microsoft / microsoft/vscode-html-languageservice

Restrict Attribute List for Custom Elements/Web Components

Open
#138 0 comments 4 reactions 0 assignees View on GitHub

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.

image

Contributor guide

No contributing guide indexed for this repository

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.