GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Content mapper ignore directives need diagnostic-code selectors · Issue #65516 · microsoft/TypeScript

Content mapper ignore directives need diagnostic-code selectors #65516

New issue
Copy link
New issue
Copy link
In progress
In progress
Content mapper ignore directives need diagnostic-code selectors#65516
Copy link
Assignees
andrewbranch
Labels
Needs InvestigationThis issue needs a team member to investigate its status.
Milestone
TypeScript 7.1.1 RC

Description

@ubugeeei
ubugeeei (ubugeeei)
opened on Nov 15, 2026
Issue body actions

Problem

A mapped diagnostic ignore directive currently selects diagnostics by generated range and policy only. Framework-generated code can place an excess-property diagnostic (TS2353) in a range that also contains unrelated assignability, event, slot, accessibility, or nested object-literal diagnostics. A range-only ignore therefore cannot suppress the intended framework compatibility diagnostic without hiding real errors.

This blocks a Vue content-mapper fix originally reported by miyaoka (@miyaoka) in ubugeeei-prod/vize#13021 and tracked in ubugeeei-prod/vize#13057.

Proposed protocol extension

  • Advertise diagnosticDirectiveCodeSelectors in host initialize.params.capabilities.
  • When advertised, interpret an ignore tuple optional sixth element as a TypeScript diagnostic code.
  • Keep legacy five-element ignores and expect tuples byte-for-byte unchanged.
  • Filter only when both the virtual range and diagnostic code match.

This makes unsupported hosts safe: a mapper does not emit the selected tuple unless the host explicitly advertises support, so it never degrades to range-only suppression.

Activity

  1. Ryan Cavanaugh (RyanCavanaugh)
    added
    Needs InvestigationThis issue needs a team member to investigate its status.
    on Nov 17, 2026
  2. Ryan Cavanaugh (RyanCavanaugh)
    assigned
    Andrew Branch (andrewbranch)
    on Nov 17, 2026
  3. Andrew Branch (andrewbranch)
    added this to the TypeScript 7.1.1 RC milestone on Nov 19, 2026
  4. andrewbranch commented on Nov 20, 2026

    @andrewbranch
    Andrew Branch (andrewbranch)
    on Nov 20, 2026
    Member
    More actions

    If this is primarily about excess property checking, why not change the code generation to include an index signature?

    I'm torn on this. The use case here is pretty reasonable, but this functionality would make it really easy for any content mapper to disable, file-wide if desired, any TypeScript error they want, which makes me a little uneasy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @andrewbranch
    Andrew Branch (andrewbranch)

Labels

Needs InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

    Milestone

    • TypeScript 7.1.1 RCNo due date

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.