MCPcopy Index your code
hub / github.com/microsoft/vscode-js-debug / computedSourceUrl

Method computedSourceUrl

src/common/sourceMaps/sourceMap.ts:92–101  ·  view source on GitHub ↗

* Gets the source URL computed from the compiled path and the source root.

(sourceUrl: string)

Source from the content-addressed store, hash-verified

90 * Gets the source URL computed from the compiled path and the source root.
91 */
92 public computedSourceUrl(sourceUrl: string) {
93 return fixDriveLetterAndSlashes(
94 completeUrlEscapingRoot(
95 isDataUri(this.metadata.sourceMapUrl)
96 ? this.metadata.compiledPath
97 : this.metadata.sourceMapUrl,
98 this.sourceRoot + sourceUrl,
99 ),
100 );
101 }
102
103 /**
104 * @inheritdoc

Callers 1

_addSourceMapSourcesMethod · 0.80

Calls 3

fixDriveLetterAndSlashesFunction · 0.90
completeUrlEscapingRootFunction · 0.90
isDataUriFunction · 0.90

Tested by

no test coverage detected