Skip to content

Commit 91d4c9a

Browse files
committed
avoid displaying gemini tool calls
Signed-off-by: Alejandro Brugarolas <[email protected]>
1 parent d654f88 commit 91d4c9a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vscode/core/src/utilities/ModifiedFiles/processMessage.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ export const processMessageByType = async (
301301
let content: string;
302302
if (typeof chunk.content === "string") {
303303
content = chunk.content;
304+
} else if (Array.isArray(chunk.content)) {
305+
content = chunk.content
306+
.filter((part: any) => part.type === "text" && typeof part.text === "string")
307+
.map((part: any) => part.text)
308+
.join("");
304309
} else {
305310
try {
306311
content = JSON.stringify(chunk.content);

0 commit comments

Comments
 (0)