vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

Command "GitLens: Git Pop Stash..." doesn't remove stashes when using pop

Open cegekaJG opened this issue 1 year ago • 0 comments

Description

I've assigned a Git Pop Stash command to a keybind to access it easier, but unlike the command performed through the UI, selecting "Pop stash" rather than "Apply stash" doesn't remove it afterwards.

Instructions

  1. Open "Keyboard Shortcuts
  2. Search for gitlens.gitCommands.stash.pop and add a keybinding
  3. In a workspace with Git set up, either create or modify a file and leave the change unstaged.
  4. Stash the changes by either using the "Source Control" UI or the command git stash.
  5. Finally, use the new keybind to start the "GitLens: Git Pop Stash..." command. Select the new stash and pick the option "Pop stash"
  6. As a result, the stashed changes have been applied to the workspace again, but the stash hasn't been removed.

GitLens Version

14.8.2

VS Code Version

Version: 1.86.2 (user setup) Commit: 903b1e9d8990623e3d7da1df3d33db3e42d80eda Date: 2024-02-13T19:40:56.878Z Electron: 27.2.3 ElectronBuildId: 26908389 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Windows_NT x64 10.0.22621

Git Version

git version 2.43.0.windows.1

Logs, Screenshots, Screen Captures, etc

No response

cegekaJG avatar Feb 21 '24 08:02 cegekaJG