[VSCodeSweeper MVP — test only] [html] don't validate custom event handlers as JavaScript#1
[VSCodeSweeper MVP — test only] [html] don't validate custom event handlers as JavaScript#1egamma wants to merge 2 commits into
Conversation
🤖 codex review — round 1VSCodeSweeper MVP self-review (fork-only experiment). The patch fixes false positives for invalid Review comment:
|
|
🔧 Round 1: pushed commits addressing the review above; re-reviewing. |
🤖 codex review — round 2VSCodeSweeper MVP self-review (fork-only experiment). The patch fixes false positives for invalid Review comment:
|
|
Standing finding (from rounds 1–2): the allow-list approach keeps missing valid standard event-handler attributes ( VSCodeSweeper MVP — fork-only experiment. This loop's later runs handle this stop gracefully. |
Upstream issue: microsoft#79631
Change summary
Custom HTML attributes prefixed with "on" are incorrectly validated as JavaScript event handlers, producing spurious ';' expected errors.
Validation
Add a test in extensions/html-language-features/server/src/test/embedded.test.ts asserting that an attribute like
onCustomThingis NOT classified as JavaScript (languageId should be null/undefined), while known handlers likeonclickstill are.Branch
vscodesweeper/fix-79631· generated fix · review loop runs separately (codex review).