MCPcopy Create free account
hub / github.com/codeaashu/claude-code / handleSave

Function handleSave

src/commands/plugin/PluginOptionsFlow.tsx:115–128  ·  view source on GitHub ↗
(values_1: PluginOptionValues)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

onDoneFunction · 0.50
errorMessageFunction · 0.50

Tested by

no test coverage detected