Skip to content

Commit f1c7975

Browse files
authored
Add line wrapping to MCP arguments (#2831)
1 parent 3e2d20f commit f1c7975

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,7 @@ export const ChatRowContent = ({
11741174
language="json"
11751175
isExpanded={true}
11761176
onToggleExpand={onToggleExpand}
1177+
forceWrap={true}
11771178
/>
11781179
</div>
11791180
)}

webview-ui/src/components/common/CodeAccordian.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ interface CodeAccordianProps {
1414
onToggleExpand: () => void
1515
isLoading?: boolean
1616
progressStatus?: ToolProgressStatus
17+
forceWrap?: boolean
1718
}
1819

1920
/*
@@ -38,6 +39,7 @@ const CodeAccordian = ({
3839
onToggleExpand,
3940
isLoading,
4041
progressStatus,
42+
forceWrap,
4143
}: CodeAccordianProps) => {
4244
const inferredLanguage = useMemo(
4345
() => code && (language ?? (path ? getLanguageFromPath(path) : undefined)),
@@ -126,6 +128,7 @@ const CodeAccordian = ({
126128
diff ??
127129
""
128130
).trim()}\n${"```"}`}
131+
forceWrap={forceWrap}
129132
/>
130133
</div>
131134
)}

0 commit comments

Comments
 (0)