git-commits icon indicating copy to clipboard operation
git-commits copied to clipboard

"Stash staged changes" stashes unstaged changes too

Open JordanLongstaff opened this issue 2 years ago • 1 comments

Version: 4.2.0 (latest)

Steps to reproduce:

  1. Change two different files in your workspace.
  2. Stage only one of the changes.
  3. Click the "Stash staged changes" button under Stashes in Source Control. Add a stash message if you want, but confirm stashing.

Expected behaviour: The staged change would be stashed and the unstaged change would remain. Actual behaviour: Both changes are added to the same stash.

JordanLongstaff avatar Nov 30 '23 17:11 JordanLongstaff

Hey!

Thank for reporting. Could you check how vscode stash command bahevaes? You can find it in command palette. There should be 2 of them stash all changes and stash staged changes.

I suspect this is vscode issue but might be wrong.

Exelord avatar Dec 03 '23 17:12 Exelord