Skip to content

Commit

Permalink
omit SVG from chat (#241762)
Browse files Browse the repository at this point in the history
remove svg specifically
  • Loading branch information
justschen authored Feb 25, 2025
1 parent 963c934 commit 59990f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vs/workbench/contrib/chat/browser/chatDragAndDrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 59990f4

Please sign in to comment.