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

Method format

valdi/vscode_debugger/src/adapter/stackTrace.ts:303–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301 }
302
303 async format(): Promise<string> {
304 if (this._isAsyncSeparator) return `◀ ${this._name} ▶`;
305 const uiLocation = await this._uiLocation;
306 const prettyName =
307 (uiLocation && (await uiLocation.source.prettyName())) || this._rawLocation.url;
308 const anyLocation = uiLocation || this._rawLocation;
309 let text = `${this._name} @ ${prettyName}:${anyLocation.lineNumber}`;
310 if (anyLocation.columnNumber > 1) text += `:${anyLocation.columnNumber}`;
311 return text;
312 }
313
314 uiLocation(): Promise<IPreferredUiLocation | undefined> {
315 return this._uiLocation;

Callers

nothing calls this directly

Calls 1

prettyNameMethod · 0.80

Tested by

no test coverage detected