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

Method constructor

valdi/vscode_debugger/src/adapter/threads.ts:147–167  ·  view source on GitHub ↗
(
    sourceContainer: SourceContainer,
    cdp: Cdp.Api,
    dap: Dap.Api,
    delegate: IThreadDelegate,
    logger: ILogger,
    private readonly evaluator: IEvaluator,
    private readonly completer: ICompletions,
    private readonly launchConfig: AnyLaunchConfiguration,
    private readonly _breakpointManager: BreakpointManager,
  )

Source from the content-addressed store, hash-verified

145 public readonly onPaused = this._onPausedEmitter.event;
146
147 constructor(
148 sourceContainer: SourceContainer,
149 cdp: Cdp.Api,
150 dap: Dap.Api,
151 delegate: IThreadDelegate,
152 logger: ILogger,
153 private readonly evaluator: IEvaluator,
154 private readonly completer: ICompletions,
155 private readonly launchConfig: AnyLaunchConfiguration,
156 private readonly _breakpointManager: BreakpointManager,
157 ) {
158 this._dap = new DeferredContainer(dap);
159 this._delegate = delegate;
160 this._sourceContainer = sourceContainer;
161 this._cdp = cdp;
162 this.id = Thread._lastThreadId++;
163 this.replVariables = new VariableStore(this._cdp, this, launchConfig.__autoExpandGetters);
164 this._serializedOutput = Promise.resolve();
165 this._smartStepper = new SmartStepper(this.launchConfig, logger);
166 this._initialize();
167 }
168
169 cdp(): Cdp.Api {
170 return this._cdp;

Callers

nothing calls this directly

Calls 2

_initializeMethod · 0.95
resolveMethod · 0.65

Tested by

no test coverage detected