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

Method createScope

src/adapter/variableStore.ts:1616–1641  ·  view source on GitHub ↗

Creates a container for a CDP Scope

(
    value: Cdp.Runtime.RemoteObject,
    scopeRef: IScopeRef,
    extraProperties: IExtraProperty[],
  )

Source from the content-addressed store, hash-verified

1614
1615 /** Creates a container for a CDP Scope */
1616 public createScope(
1617 value: Cdp.Runtime.RemoteObject,
1618 scopeRef: IScopeRef,
1619 extraProperties: IExtraProperty[],
1620 ): IVariableContainer {
1621 const scope: Scope = new Scope(
1622 value,
1623 new VariableContext(
1624 this.cdp,
1625 undefined,
1626 { name: '' },
1627 this.vars,
1628 this.locationProvider,
1629 () => scope,
1630 this.contextSettings,
1631 this.clientCapabilities,
1632 ),
1633 scopeRef,
1634 extraProperties,
1635 this.renameProvider,
1636 );
1637
1638 this.vars.add(scope);
1639
1640 return scope;
1641 }
1642
1643 /** Creates a container for a CDP Scope */
1644 public createWasmScope(

Callers 1

_scopeVariableMethod · 0.80

Calls 1

addMethod · 0.65

Tested by

no test coverage detected