(values_1: PluginOptionValues)
| 113 | } |
| 114 | const current = steps[index]!; |
| 115 | function handleSave(values_1: PluginOptionValues): void { |
| 116 | try { |
| 117 | current.save(values_1); |
| 118 | } catch (err) { |
| 119 | onDone('error', errorMessage(err)); |
| 120 | return; |
| 121 | } |
| 122 | const next = index + 1; |
| 123 | if (next < steps.length) { |
| 124 | setIndex(next); |
| 125 | } else { |
| 126 | onDone('configured'); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | // key forces a remount when advancing to the next step — React would |
| 131 | // otherwise reuse the instance and carry PluginOptionsDialog's |
nothing calls this directly
no test coverage detected