MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setSourceMapUrl

Method setSourceMapUrl

valdi/vscode_debugger/src/adapter/sources.ts:160–174  ·  view source on GitHub ↗
(sourceMapUrl?: string)

Source from the content-addressed store, hash-verified

158 }
159
160 private setSourceMapUrl(sourceMapUrl?: string) {
161 if (!sourceMapUrl) {
162 this.sourceMap = undefined;
163 return;
164 }
165
166 this.sourceMap = {
167 url: sourceMapUrl,
168 sourceByUrl: new Map(),
169 metadata: {
170 sourceMapUrl,
171 compiledPath: this._absolutePath || this.url,
172 },
173 };
174 }
175
176 addScriptId(scriptId: Cdp.Runtime.ScriptId): void {
177 this._scriptIds.push(scriptId);

Callers 2

constructorMethod · 0.95
prettyPrintMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected