microsoft / microsoft/vscode-html-languageservice

Processing instruction support

Open
#253 0 comments 0 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

This is very cutting edge, but basically Chrome has now shipped the ability to parse processing instructions in HTML, it would be good to start looking at language server support for this.

In particular at a minimum the punctuation and target should be highlighted. It's also intended that data will be treated like attributes so it probably makes sense to also highlight the data as if it were a list of attributes too.

Ideally we also integrate into custom data as well, so that we can have tooltips for both processing instruction targets and their "attributes".

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 reading the linked Chrome processing-instructions feature and the WHATWG DOM discussion to understand the syntax and attribute-like data. Then review the customData documentation to determine how targets and attributes could receive tooltips. Done means punctuation, targets, and data are highlighted, with custom-data tooltip support where feasible.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.