From 59990f4108d681df9c0673e8254593697cd5141d Mon Sep 17 00:00:00 2001 From: Justin Chen <54879025+justschen@users.noreply.github.com> Date: Mon, 24 Feb 2025 16:04:18 -0800 Subject: [PATCH] omit SVG from chat (#241762) remove svg specifically --- src/vs/workbench/contrib/chat/browser/chatDragAndDrop.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.ts b/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.ts index 8ce32d172039c..da5d68df44472 100644 --- a/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.ts +++ b/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.ts @@ -525,6 +525,10 @@ async function getResourceAttachContext(resource: URI, isDirectory: boolean, tex isOmitted = true; } + if (/\.(svg)$/i.test(resource.path)) { + isOmitted = true; + } + return { value: resource, id: resource.toString(),