Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>TypeScript Content Mapper InspectorNew to Visual Studio Code? Get it now.
TypeScript Content Mapper Inspector

TypeScript Content Mapper Inspector

Andrew Branch

|
4 installs
| (0) | Free
Inspect TypeScript content mapper virtual documents and span mappings
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TypeScript Content Mapper Inspector

Inspect the virtual TypeScript files, span mappings, and diagnostic directives generated by TypeScript content mappers.

Inspecting a Vue component alongside its generated TypeScript output and span-mapping hover details

Requirements

  • The TypeScript 7 VS Code extension (1.0.2 or newer), enabled for the workspace.
  • TypeScript 7.1.0-dev.20261009.1 or newer (including 7.1.0-beta or typescript@next) installed in the workspace and selected via TypeScript: Select TypeScript Version... → Use Workspace Version.

Usage

View virtual documents

Open a content-mapped file (such as a .vue component) and run TypeScript Content Mapper: Show Virtual Documents from the Command Palette or by right-clicking the editor tab. Read-only virtual TypeScript documents open beside the source file and update automatically as you edit.

Inspect span mappings

Place the cursor on a mapped range in either the source file or a virtual document to highlight the corresponding spans in both editors:

  • Green — Verbatim
  • Amber — Atom
  • Blue — Alias

All other mappings in visible source/virtual document pairs are shown with dimmed highlights. Disable typescript.contentMapperInspector.highlightAllMappings to show only the mappings at the cursor.

Hover a highlighted span in the virtual document to see its span kind and enabled language-service features, along with their numeric values.

Inspect diagnostic directives

While a content-mapped file or its virtual document is active, open Diagnostic Directives in the Explorer sidebar to view mapped ignore and expect directives (including diagnostic codes for unused expectations). Click an item to reveal its source and virtual ranges, or move the cursor onto a directive in either editor to select it in the tree.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft