Repository navigation
Content mapper docs - #65582
Open
Gabriela Araujo Britto (gabritto) wants to merge 13 commits into
Open
Content mapper docs#65582Gabriela Araujo Britto (gabritto) wants to merge 13 commits into
Gabriela Araujo Britto (gabritto) wants to merge 13 commits into
Conversation
Andrew Branch (andrewbranch)
left a comment
Member
There was a problem hiding this comment.
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.
Daniel Rosenwasser (DanielRosenwasser)
previously requested changes
Nov 19, 2026
Gabriela Araujo Britto (gabritto)
marked this pull request as ready for review
November 25, 2026 20:01
Contributor
There was a problem hiding this comment.
🟡 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
Require rewriteRelativeImportExtensions for the .gts to .js mapping · New Document required Content-Length framing for STDIO · New Document that closeProject requests require a response · New Correct the direction of request and result position mapping · New Use the public supplementalSourceFileNames property · New
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
Andrew Branch (andrewbranch)
approved these changes
Nov 30, 2026
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
Member
Gabriela Araujo Britto (gabritto)
requested a review
from Andrew Branch (andrewbranch)
December 4, 2026 18:21
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.