mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Merge pull request #697 from samhvw8/fix/config-profile-rename-bug
fix: prevent unnecessary config operations when renaming to same name
This commit is contained in:
@@ -1222,6 +1222,10 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
||||
try {
|
||||
const { oldName, newName } = message.values
|
||||
|
||||
if (oldName === newName) {
|
||||
break
|
||||
}
|
||||
|
||||
await this.configManager.saveConfig(newName, message.apiConfiguration)
|
||||
await this.configManager.deleteConfig(oldName)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user