(item: ToolConfirmationOutcome)
| 43 | ); |
| 44 | |
| 45 | const handleSelect = (item: ToolConfirmationOutcome) => { |
| 46 | if (item === ToolConfirmationOutcome.Cancel) { |
| 47 | onConfirm(item); |
| 48 | } else { |
| 49 | // For both ProceedOnce and ProceedAlways, we approve all the |
| 50 | // commands that were requested. |
| 51 | onConfirm(item, commands); |
| 52 | } |
| 53 | }; |
| 54 | |
| 55 | const options: Array<RadioSelectItem<ToolConfirmationOutcome>> = [ |
| 56 | { |
nothing calls this directly
no outgoing calls
no test coverage detected