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

Method setSourceMapUrl

src/adapter/source.ts:154–166  ·  view source on GitHub ↗
(sourceMapMetadata?: ISourceMapMetadata)

Source from the content-addressed store, hash-verified

152 }
153
154 private setSourceMapUrl(sourceMapMetadata?: ISourceMapMetadata) {
155 if (!sourceMapMetadata) {
156 this.sourceMap = undefined;
157 return;
158 }
159
160 this.sourceMap = {
161 type: SourceLocationType.SourceMap,
162 sourceByUrl: new Map(),
163 value: getDeferred(),
164 metadata: sourceMapMetadata,
165 };
166 }
167
168 /**
169 * Associated a script with this source. This is only valid for a source

Callers 2

constructorMethod · 0.95
prettyPrintMethod · 0.95

Calls 1

getDeferredFunction · 0.90

Tested by

no test coverage detected