(index: number, keepOpen?: boolean)
| 46 | } |
| 47 | |
| 48 | async selectQuickInputElement(index: number, keepOpen?: boolean): Promise<void> { |
| 49 | await this.waitForQuickInputOpened(); |
| 50 | for (let from = 0; from < index; from++) { |
| 51 | await this.code.dispatchKeybinding('down', async () => { }); |
| 52 | } |
| 53 | await this.code.dispatchKeybinding('enter', async () => { |
| 54 | if (!keepOpen) { |
| 55 | await this.waitForQuickInputClosed(); |
| 56 | } |
| 57 | }); |
| 58 | } |
| 59 | } |