MCPcopy Index your code
hub / github.com/modelcontextprotocol/ext-apps / LabeledCodeFence

Interface LabeledCodeFence

scripts/sync-snippets.ts:65–82  ·  view source on GitHub ↗

* Represents a labeled code fence found in a source file.

Source from the content-addressed store, hash-verified

63 * Represents a labeled code fence found in a source file.
64 */
65interface LabeledCodeFence {
66 /** Optional display filename (e.g., "my-app.ts") */
67 displayName?: string;
68 /** Relative path to the example file (e.g., "./app.examples.ts") */
69 examplePath: string;
70 /** Region name (e.g., "App_basicUsage"), or undefined for whole file */
71 regionName?: string;
72 /** Language from the code fence (e.g., "ts", "json", "yaml") */
73 language: string;
74 /** Character index of the opening fence line start */
75 openingFenceStart: number;
76 /** Character index after the opening fence line (after newline) */
77 openingFenceEnd: number;
78 /** Character index of the closing fence line start */
79 closingFenceStart: number;
80 /** The JSDoc line prefix extracted from context (e.g., " * ") */
81 linePrefix: string;
82}
83
84/**
85 * Cache for example file regions to avoid re-reading files.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…