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

Method _humanName

valdi/vscode_debugger/src/adapter/sources.ts:291–300  ·  view source on GitHub ↗

* Gets the human-readable name of the source.

()

Source from the content-addressed store, hash-verified

289 * Gets the human-readable name of the source.
290 */
291 private _humanName() {
292 if (utils.isAbsolute(this._fqname)) {
293 const root = this._container.rootPath;
294 if (root && isSubdirectoryOf(root, this._fqname)) {
295 return forceForwardSlashes(relative(root, this._fqname));
296 }
297 }
298
299 return this._fqname;
300 }
301
302 /**
303 * Returns a pretty name for the script. This is the name displayed in

Callers 1

constructorMethod · 0.95

Calls 3

isSubdirectoryOfFunction · 0.90
forceForwardSlashesFunction · 0.90
isAbsoluteMethod · 0.80

Tested by

no test coverage detected