microsoft / microsoft/vscode-html-languageservice

Script tags are always assumed to be JS, even when explicitly not

Open
#203 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

info-needed
Dominant language
TypeScript
Stars
284
Forks
138
Avg merge
19h 11m
Merged PRs (30d)
5

Description

Script tags can be anything, and old HTML files from the IE era (which still live on in many corporate/industrial/government environments) can have language=VBScript tags.

Yet these are always highlighted as JavaScript, when the language attribute should cause them to be highlighted as VBScript.

These are Microsoft files, please support them.

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

No files or tests are named. Start by locating the HTML language service handling for script tags and how the language attribute selects highlighting. Done means VBScript script tags are highlighted as VBScript while the existing JavaScript behavior remains unchanged, with focused tests covering the attribute.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.