Skip to content

Commit

Permalink
remove svg specifically
Browse files Browse the repository at this point in the history
  • Loading branch information
justschen committed Feb 24, 2025
1 parent 8d7910b commit a01cf7f
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 a01cf7f

Please sign in to comment.