Skip to content

Commit 526ed71

Browse files
committed
fix: add codebaseIndexConfig to useExtensionState and conditionally render IndexingStatusDot
1 parent 27f0cae commit 526ed71

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webview-ui/src/components/chat/ChatTextArea.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
8181
togglePinnedApiConfig,
8282
taskHistory,
8383
clineMessages,
84+
codebaseIndexConfig,
8485
} = useExtensionState()
8586

8687
// Find the ID and display text for the currently selected API configuration
@@ -1174,7 +1175,9 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
11741175
</div>
11751176

11761177
<div className={cn("flex", "items-center", "gap-0.5", "shrink-0")}>
1177-
<IndexingStatusDot onNavigateToSettings={onNavigateToSettings} />
1178+
{codebaseIndexConfig?.codebaseIndexEnabled && (
1179+
<IndexingStatusDot onNavigateToSettings={onNavigateToSettings} />
1180+
)}
11781181
<IconButton
11791182
iconClass={isEnhancingPrompt ? "codicon-loading" : "codicon-sparkle"}
11801183
title={t("chat:enhancePrompt")}

0 commit comments

Comments
 (0)