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

Method result

valdi/vscode_debugger/src/adapter/threads.ts:540–551  ·  view source on GitHub ↗
(payload?: Dap.OutputEventParams)

Source from the content-addressed store, hash-verified

538 const slot = this._serializedOutput;
539 const deferred = getDeferred<void>();
540 const result = async (payload?: Dap.OutputEventParams) => {
541 await slot;
542 if (payload) {
543 const isClearConsole = payload.output === '\x1b[2J';
544 const noop = isClearConsole && !this._consoleIsDirty;
545 if (!noop) {
546 this._dap.with(dap => dap.output(payload));
547 this._consoleIsDirty = !isClearConsole;
548 }
549 }
550 deferred.resolve();
551 };
552
553 this._serializedOutput = slot.then(() => deferred.promise);
554 // Timeout to avoid blocking future slots if this one does stall.

Callers

nothing calls this directly

Calls 3

withMethod · 0.80
outputMethod · 0.65
resolveMethod · 0.65

Tested by

no test coverage detected