TL;DR:
When you delete in VS Code it stores the files in
~/snap/code/<version#>/.local/share/Trash
Which isn't automatically emptied by gnome like ~/.local/share/Trash
Updating the package also creates new copies of this directory under a new version, leaving orphaned files/directories which contain data that you deleted.