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

Method rawLocationToUiLocation

valdi/vscode_debugger/src/adapter/threads.ts:753–767  ·  view source on GitHub ↗
(
    rawLocation: RawLocation,
  )

Source from the content-addressed store, hash-verified

751 }
752
753 public async rawLocationToUiLocation(
754 rawLocation: RawLocation,
755 ): Promise<IPreferredUiLocation | undefined> {
756 const script = rawLocation.scriptId
757 ? await this.getScriptByIdOrWait(rawLocation.scriptId)
758 : undefined;
759 if (!script) {
760 return;
761 }
762
763 return this._sourceContainer.preferredUiLocation({
764 ...rawLocation,
765 source: await script.source,
766 });
767 }
768
769 /**
770 * Gets a script ID if it exists, or waits to up maxTime. In rare cases we

Callers 5

_revealObjectMethod · 0.95
constructorMethod · 0.80
scopesMethod · 0.80
updateUiLocationsFunction · 0.80

Calls 2

getScriptByIdOrWaitMethod · 0.95
preferredUiLocationMethod · 0.80

Tested by

no test coverage detected