From 34f160b35a5eda23d1ea52aee1d225c8064a063d Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Sun, 6 Oct 2024 04:03:27 -0400 Subject: [PATCH] Cleanup --- src/core/webview/ClineProvider.ts | 22 ------------------- webview-ui/src/components/chat/ChatRow.tsx | 4 ++-- webview-ui/src/components/chat/TaskHeader.tsx | 8 +++---- 3 files changed, 6 insertions(+), 28 deletions(-) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 7602148..a313722 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -75,28 +75,6 @@ export class ClineProvider implements vscode.WebviewViewProvider { this.outputChannel.appendLine("ClineProvider instantiated") ClineProvider.activeInstances.add(this) this.workspaceTracker = new WorkspaceTracker(this) - this.revertKodu() - } - - async revertKodu() { - const apiProvider = await this.getGlobalState("apiProvider") - if (apiProvider === "kodu") { - // switch back to previous provider - const anthropicKey = await this.getSecret("apiKey") - if (anthropicKey) { - await this.updateGlobalState("apiProvider", "anthropic" as ApiProvider) - } else { - const openRouterApiKey = await this.getSecret("openRouterApiKey") - if (openRouterApiKey) { - await this.updateGlobalState("apiProvider", "openrouter" as ApiProvider) - } else { - const awsAccessKey = await this.getSecret("awsAccessKey") - if (awsAccessKey) { - await this.updateGlobalState("apiProvider", "bedrock" as ApiProvider) - } - } - } - } } /* diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 9ac62e2..51be219 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -460,7 +460,7 @@ const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifiedMessa )}
- {/* {apiProvider === "kodu" && ( + {/* {apiProvider === "" && (