(input: MultiStepInput, state: Partial<State>)
| 89 | } |
| 90 | |
| 91 | async function pickRuntime(input: MultiStepInput, state: Partial<State>) { |
| 92 | const additionalSteps = typeof state.resourceGroup === 'string' ? 1 : 0; |
| 93 | const runtimes = await getAvailableRuntimes(state.resourceGroup!, undefined /* TODO: token */); |
| 94 | // TODO: Remember currently active item when navigating back. |
| 95 | state.runtime = await input.showQuickPick({ |
| 96 | title, |
| 97 | step: 3 + additionalSteps, |
| 98 | totalSteps: 3 + additionalSteps, |
| 99 | placeholder: 'Pick a runtime', |
| 100 | items: runtimes, |
| 101 | activeItem: state.runtime, |
| 102 | shouldResume: shouldResume |
| 103 | }); |
| 104 | } |
| 105 | |
| 106 | function shouldResume() { |
| 107 | // Could show a notification with the option to resume. |
no test coverage detected