File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
webview-ui/src/components/chat Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import type { ClineMessage } from "@roo-code/types"
1111import { getModelMaxOutputTokens } from "@roo/api"
1212import { findLastIndex } from "@roo/array"
1313
14- import { formatLargeNumber } from "@src/utils/format"
14+ import { formatCost , formatLargeNumber } from "@src/utils/format"
1515import { cn } from "@src/lib/utils"
1616import { StandardTooltip } from "@src/components/ui"
1717import { useExtensionState } from "@src/context/ExtensionStateContext"
@@ -24,6 +24,8 @@ import { ContextWindowProgress } from "./ContextWindowProgress"
2424import { Mention } from "./Mention"
2525import { TodoListDisplay } from "./TodoListDisplay"
2626
27+ import { vscode } from "@src/utils/vscode"
28+
2729export interface TaskHeaderProps {
2830 task : ClineMessage
2931 tokensIn : number
@@ -301,17 +303,15 @@ const TaskHeader = ({
301303 { t ( "chat:task.apiCost" ) }
302304 </ th >
303305 < td className = "align-top" >
304- < span > $ { totalCost ?. toFixed ( 2 ) } </ span >
306+ < span > { formatCost ( totalCost ) } </ span >
305307 < StandardTooltip content = { t ( "chat:apiRequest.viewTokenUsage" ) } >
306308 < ChartColumn
307309 className = "inline size-3.5 -mt-0.5 ml-2 text-vscode-textLink-foreground cursor-pointer hover:text-vscode-textLink-activeForeground transition-colors"
308310 onClick = { ( e ) => {
309311 e . stopPropagation ( )
310- import ( "@src/utils/vscode" ) . then ( ( { vscode } ) => {
311- vscode . postMessage ( {
312- type : "switchTab" ,
313- tab : "cloud" ,
314- } )
312+ vscode . postMessage ( {
313+ type : "switchTab" ,
314+ tab : "cloud" ,
315315 } )
316316 } }
317317 />
You can’t perform that action at this time.
0 commit comments