MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / ComposedInteractor

Class ComposedInteractor

Extension/src/SSH/commandInteractors.ts:353–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353export class ComposedInteractor implements IInteractor {
354 constructor(private readonly interactors: IInteractor[]) { }
355
356 get id(): string {
357 return 'composed';
358 }
359
360 async onData(data: string): Promise<IInteraction> {
361 for (const interactor of this.interactors) {
362 const result: IInteraction = await interactor.onData(data);
363 if (result.postAction === 'consume') {
364 return result;
365 }
366 }
367
368 return { postAction: 'keep' };
369 }
370}
371
372export interface ISystemInteractor {
373 createTerminal(options: vscode.TerminalOptions): vscode.Terminal;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected