Registry Mirror
Skip to content

Conversation

@gabritto

Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for doing this! I feel so much better about my odds of getting everything done by our release 😄

One additional short section in the implementation doc should be about compatibility:

  • The protocol will only change in backward-compatible ways after 7.1 is officially released. New features may be added with an LSP-like capabilities negotiation in initialize.
  • For forward compatibility, tuples should be considered open-ended. A mapper should not assert an exact tuple length or read elements beyond ones it knows how to handle.

@gabritto
Gabriela Araujo Britto (gabritto) marked this pull request as ready for review November 25, 2026 20:01
Copilot AI balanced review requested due to automatic review settings November 25, 2026 20:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved documentation errors in compiler prerequisites, STDIO framing, request handling, position mapping, and the public API property name can cause configuration failures, stalled cleanup, or incorrect mapper implementations.

5 open issues
What changed in this PR

This documentation-only PR explains how content mappers integrate specialized file formats with TypeScript’s compiler and language server.

Changes:

  • Introduces mapper configuration, file inclusion, and CLI/editor support.
  • Documents implementation protocols, span mappings, diagnostics, compilation, and API integration.
  • Adds diagrams illustrating atom, verbatim, and alias mappings.
File Description
docs/​content_mappers/​intro_content_mappers.md Getting-started guide for configuring and using content mappers.
docs/​content_mappers/​impl_content_mappers.md Implementation guide covering protocols and compiler/editor integration.
docs/​content_mappers/​add-span-mappings.svg Illustrates atom and verbatim mappings and diagnostic locations.
docs/​content_mappers/​add-span-mappings-alias.svg Illustrates alias mappings and diagnostic name substitution.

Review effort: Balanced

@andrewbranch

Copy link
Copy Markdown
Member

This branch has not been deployed

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

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants