Skip to content

Commit 57d9731

Browse files
authored
fix: persist settings on api.setConfiguration (#2341)
Values weren't being saved to the settings store, preventing switching to newly created profiles. Co-authored-by: Greg Taylor <[email protected]>
1 parent 5fb9af4 commit 57d9731

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/exports/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
172172

173173
public async setConfiguration(values: RooCodeSettings) {
174174
await this.sidebarProvider.setValues(values)
175+
await this.sidebarProvider.providerSettingsManager.saveConfig(values.currentApiConfigName || "default", values)
175176
await this.sidebarProvider.postStateToWebview()
176177
}
177178

0 commit comments

Comments
 (0)