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

Method _revealObject

valdi/vscode_debugger/src/adapter/threads.ts:1282–1302  ·  view source on GitHub ↗
(object: Cdp.Runtime.RemoteObject)

Source from the content-addressed store, hash-verified

1280 }
1281
1282 async _revealObject(object: Cdp.Runtime.RemoteObject) {
1283 if (object.type !== 'function' || object.objectId === undefined) return;
1284 const response = await this._cdp.Runtime.getProperties({
1285 objectId: object.objectId,
1286 ownProperties: true,
1287 });
1288 if (!response) return;
1289 for (const p of response.internalProperties || []) {
1290 if (
1291 p.name !== '[[FunctionLocation]]' ||
1292 !p.value ||
1293 (p.value.subtype as string) !== 'internal#location'
1294 )
1295 continue;
1296 const uiLocation = await this.rawLocationToUiLocation(
1297 this.rawLocation(p.value.value as Cdp.Debugger.Location),
1298 );
1299 if (uiLocation) this._sourceContainer.revealUiLocation(uiLocation);
1300 break;
1301 }
1302 }
1303
1304 async _copyObjectToClipboard(object: Cdp.Runtime.RemoteObject) {
1305 if (!object.objectId) {

Callers 1

_initializeMethod · 0.95

Calls 4

rawLocationMethod · 0.95
revealUiLocationMethod · 0.80
getPropertiesMethod · 0.65

Tested by

no test coverage detected