Microsoft/vscode

Discard changes of an Untracked file raise an error if no recycle bin option

Open

#246259 opened on Apr 10, 2025

View on GitHub
 (0 comments) (0 reactions) (1 assignee)TypeScript (74,848 stars) (10,221 forks)batch import
buggithelp wantedteam-low-hanging

Description

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:

Steps to Reproduce:

  1. Set the Recycle Bin option to Delete directly
  2. Try to undo the changes of an untracked file
  3. You'll get an error cause VSCode should put that file into the bin, but with that option set, can't delete the file

Image Image

Contributor guide