-
Notifications
You must be signed in to change notification settings - Fork 633
Description
- Extension version: 0.114.0
- VSCode Version: 1.102.0 (cb0c47c0cfaad0757385834bd89d410c78a856c0)
- OS: Windows 11 Pro (24H2)
- Repository Clone Configuration (single repository/fork of an upstream repository): NA
- GitHub Product (GitHub.com/GitHub Enterprise version x.x.x): NA
Steps to Reproduce:

- Have untracked files in your workspace
- Try to check out a PR branch
- The above warning pops up: "You have uncommitted changes that would be overwritten by checking out this pull request. Choose how to handle your uncommitted changes before checking out the pull request."
I can see a use case for the warning especially for novice users, but it seems like it triggers even on spurious cases (e.g. above). In the case of untracked files, unless the PR branch happens to create and commit a file at the same path, this warning should not show up.
For my use case, I switch between a ton of different environment files/configuration constantly, and work on multiple features at the same time, and so have a lot of untracked files in my workspace. It would be good if at the very least, we can disable this popup with a workspace setting, or just remove the warning entirely for untracked files. This will allow the warning to still show up in legitimate conflict cases (instead of simply showing an error toast + manual resolution, as is the case in previous versions).