MCPcopy Index your code
hub / github.com/microsoft/vscode / waitForTerminalBuffer

Method waitForTerminalBuffer

test/automation/src/code.ts:325–327  ·  view source on GitHub ↗
(selector: string, accept: (result: string[]) => boolean)

Source from the content-addressed store, hash-verified

323 }
324
325 async waitForTerminalBuffer(selector: string, accept: (result: string[]) => boolean): Promise<void> {
326 await this.poll(() => this.driver.getTerminalBuffer(selector), accept, `get terminal buffer '${selector}'`);
327 }
328
329 async writeInTerminal(selector: string, value: string): Promise<void> {
330 await this.poll(() => this.driver.writeInTerminal(selector, value), () => true, `writeInTerminal '${selector}'`);

Callers 2

waitForTerminalTextMethod · 0.80
_waitForTerminalMethod · 0.80

Calls 2

pollMethod · 0.95
getTerminalBufferMethod · 0.65

Tested by

no test coverage detected