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

Method checkContentHash

src/adapter/source.ts:111–118  ·  view source on GitHub ↗

Returns the absolute path if the conten hash matches.

(contentHash?: string)

Source from the content-addressed store, hash-verified

109
110 /** Returns the absolute path if the conten hash matches. */
111 protected checkContentHash(contentHash?: string) {
112 return checkContentHash(
113 this.absolutePath,
114 // Inline scripts will never match content of the html file. We skip the content check.
115 this.inlineScriptOffset || this.runtimeScriptOffset ? undefined : contentHash,
116 this._container._fileContentOverridesForTest.get(this.absolutePath),
117 );
118 }
119
120 /** Offsets a location that came from the runtime script, to where it appears in source code */
121 public offsetScriptToSource<T extends { lineNumber: number; columnNumber: number }>(obj: T): T {

Callers 1

constructorMethod · 0.95

Calls 2

checkContentHashFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected