fix(vscode): clear params when switching MCP installation method

This commit is contained in:
Mark IJbema
2026-03-17 15:10:52 +01:00
parent e37dfd326d
commit 2dfcc8e867
@@ -119,7 +119,12 @@ export const InstallModal = (props: Props) => {
current={method()}
value={(m: McpInstallationMethod) => m.name}
label={(m: McpInstallationMethod) => m.name}
onSelect={(v: McpInstallationMethod | undefined) => v && setMethod(v)}
onSelect={(v: McpInstallationMethod | undefined) => {
if (v) {
setMethod(v)
setParams({})
}
}}
/>
</div>
</Show>