(command: INestedChoiceCommand)
| 570 | } |
| 571 | |
| 572 | private async executeNestedChoice(command: INestedChoiceCommand) { |
| 573 | const choice: IChoice = command.choice; |
| 574 | if (!choice) { |
| 575 | log.logError(`choice in ${command.name} is invalid`); |
| 576 | return; |
| 577 | } |
| 578 | |
| 579 | await this.choiceExecutor.execute(choice); |
| 580 | const abort = this.choiceExecutor.consumeAbortSignal?.(); |
| 581 | if (abort) { |
| 582 | throw abort; |
| 583 | } |
| 584 | } |
| 585 | |
| 586 | private async executeEditorCommand(command: IEditorCommand) { |
| 587 | switch (command.editorCommandType) { |
no test coverage detected