vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Could not cancel out of dialog about stashing issue

Open nomike opened this issue 7 months ago • 1 comments

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

  • OS version: WSL version: 2.5.7.0 Kernel version: 6.6.87.1-1 WSLg version: 1.0.66 MSRDC version: 1.2.6074 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release

  • vscode verssion: Version: 1.100.2 (system setup) Commit: 848b80aeb52026648a8ff9f7c45a9b0a80641e2e Date: 2025-05-14T21:47:40.416Z (1 wk ago) Electron: 34.5.1 ElectronBuildId: 11369351 Chromium: 132.0.6834.210 Node.js: 20.19.0 V8: 13.2.152.41-electron.0 OS: Windows_NT x64 10.0.26100

Description

I have a couple of unstaged changes in my git worktree and want to switch to another branch. I therefore want to stash my changes in multiple separate stashes.

I therefore staged a few changes, hit the stash button, and typed in a name.

I then received this error message:

[Window Title]
Visual Studio Code

[Content]
Changes were stashed, but the working tree cannot be updated because at least one file has staged and unstaged changes on the same line(s)

Do you want to try again by stashing both your staged and unstaged changes?

[Stash Everything] [Cancel]

As I do not want to stash everything. I click [Cancel]. The dialog disappears but almost immediately comes back on again.

There is no way for me to cancel out of this and I had to kill vscode via the task manager.

nomike avatar May 22 '25 12:05 nomike

I think this dialog is coming from an extension that you have installed. When I searched the VS Code codebase for the string stash everything it found no matches.

gjsjohnmurray avatar May 22 '25 14:05 gjsjohnmurray

The built-in VS Code extension does not have a "Stash button" so I do agree that this dialog is coming from an extension that you have installed. If you would like to stash the staged changes you can use the "Git: Stash Staged" command from the command palette.

lszomoru avatar May 24 '25 11:05 lszomoru