vscode
vscode copied to clipboard
git: Fix discarding untracked files on Windows subst drives
Handle virtual drive paths correctly when discarding untracked files by:
-
Using the repository's rootRealPath to convert subst drive paths to real paths
-
Adding fallback to 'git clean' when filesystem deletion fails
-
Adding tests to verify path transformation logic works correctly
Fixes #248369
Hello @lszomoru requesting a review.
Hi @lszomoru requesting for a review. 🙂