From e8b4ee111c1344b01ea6d62b3904593409e9be29 Mon Sep 17 00:00:00 2001 From: yiliang114 <1204183885@qq.com> Date: Mon, 8 Dec 2025 12:58:05 +0800 Subject: [PATCH] fix(vscode-ide-companion): rm useless component --- .../toolcalls/Search/SearchToolCall.tsx | 39 +------------------ 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/packages/vscode-ide-companion/src/webview/components/messages/toolcalls/Search/SearchToolCall.tsx b/packages/vscode-ide-companion/src/webview/components/messages/toolcalls/Search/SearchToolCall.tsx index 8c76c739..5a57c443 100644 --- a/packages/vscode-ide-companion/src/webview/components/messages/toolcalls/Search/SearchToolCall.tsx +++ b/packages/vscode-ide-companion/src/webview/components/messages/toolcalls/Search/SearchToolCall.tsx @@ -15,41 +15,11 @@ import { mapToolStatusToContainerStatus, } from '../shared/utils.js'; -import type { ToolCallContainerProps } from '../shared/LayoutComponents.js'; - -export const ToolCallContainer: React.FC = ({ - label, - status = 'success', - children, - toolCallId: _toolCallId, - labelSuffix, - className: _className, -}) => ( -
-
-
- - {label} - - - {labelSuffix} - -
- {children && ( -
{children}
- )} -
-
-); - /** * Specialized component for Search tool calls * Optimized for displaying search operations and results * Shows query + result count or file list */ -// Local, scoped inline container for compact search rows (single result/text-only) const InlineContainer: React.FC<{ status: 'success' | 'error' | 'warning' | 'loading' | 'default'; labelSuffix?: string; @@ -57,14 +27,7 @@ const InlineContainer: React.FC<{ isFirst?: boolean; isLast?: boolean; }> = ({ status, labelSuffix, children, isFirst, isLast }) => { - const beforeStatusClass = - status === 'success' - ? 'before:text-qwen-success' - : status === 'error' - ? 'before:text-qwen-error' - : status === 'warning' - ? 'before:text-qwen-warning' - : 'before:text-qwen-loading before:opacity-70 before:animate-pulse-slow'; + const beforeStatusClass = `toolcall-container toolcall-status-${status}`; const lineCropTop = isFirst ? 'top-[24px]' : 'top-0'; const lineCropBottom = isLast ? 'bottom-auto h-[calc(100%-24px)]'