MCPcopy
hub / github.com/microsoft/vscode-js-debug / content

Method content

src/adapter/source.ts:205–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203 }
204
205 async content(): Promise<string | undefined> {
206 let content = await this._contentGetter();
207
208 // pad for the inline source offset, see
209 // https://github.com/microsoft/vscode-js-debug/issues/736
210 if (this.inlineScriptOffset?.lineOffset) {
211 content = '\n'.repeat(this.inlineScriptOffset.lineOffset) + content;
212 }
213
214 return content;
215 }
216
217 /**
218 * Pretty-prints the source. Generates a beauitified source map if possible

Callers 5

prettyPrintMethod · 0.95
provideForSourceMethod · 0.80
getStepInTargetsMethod · 0.80
_onSourceMethod · 0.80
_addSourceMapSourcesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected