()
| 381 | */ |
| 382 | async focusTerminal() { |
| 383 | const doFocus = async (): Promise<boolean> => { |
| 384 | await this.executeCommandViaMenus("Terminal: Create New Terminal") |
| 385 | try { |
| 386 | await this.page.waitForLoadState("load") |
| 387 | await this.page.waitForSelector("textarea.xterm-helper-textarea:focus-within", { timeout: 5000 }) |
| 388 | return true |
| 389 | } catch (error) { |
| 390 | return false |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | let attempts = 1 |
| 395 | while (!(await doFocus())) { |
nothing calls this directly
no test coverage detected