MCPcopy
hub / github.com/microsoft/vscode-js-debug / AsyncSeparator

Class AsyncSeparator

src/adapter/stackTrace.ts:281–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279const frameIdCounter = posInt32Counter();
280
281export class AsyncSeparator implements IFrameElement {
282 public readonly frameId = frameIdCounter();
283
284 constructor(private readonly label = 'async') {}
285
286 public async toDap(): Promise<Dap.StackFrame> {
287 return { name: this.label, id: this.frameId, line: 0, column: 0, presentationHint: 'label' };
288 }
289
290 public async formatAsNative(): Promise<string> {
291 return ` --- ${this.label} ---`;
292 }
293
294 public async format(): Promise<string> {
295 return `◀ ${this.label} ▶`;
296 }
297}
298
299const fallbackName = '<anonymous>';
300const CLASS_CTOR_RE = /^class\s+(.+) {($|\n)/;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected