mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: show properly formatted multi-line commands in preview (#3368)
Co-authored-by: Eric Wheeler <roo-code@z.ewheeler.org>
This commit is contained in:
parent
fd859b4d13
commit
9dfe7e118d
1 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ import { vscode } from "@src/utils/vscode"
|
|||
import { useExtensionState } from "@src/context/ExtensionStateContext"
|
||||
import { cn } from "@src/lib/utils"
|
||||
import { Button } from "@src/components/ui"
|
||||
import CodeBlock from "../common/CodeBlock"
|
||||
|
||||
interface CommandExecutionProps {
|
||||
executionId: string
|
||||
|
|
@ -86,8 +87,8 @@ export const CommandExecution = ({ executionId, text }: CommandExecutionProps) =
|
|||
|
||||
return (
|
||||
<div className="w-full bg-vscode-editor-background border border-vscode-border rounded-xs p-2">
|
||||
<CodeBlock source={command} language="shell" />
|
||||
<div className="flex flex-row items-center justify-between gap-2 px-1">
|
||||
<Line className="text-sm whitespace-nowrap overflow-hidden text-ellipsis">{command}</Line>
|
||||
<div className="flex flex-row items-center gap-1">
|
||||
{status?.status === "started" && (
|
||||
<div className="flex flex-row items-center gap-2 font-mono text-xs">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue